I'm implementing a small time tracking app and I can't decide between two database designs.
The first has all the log entries in a single table, ie.
TimeLog
-------------
job_id : long
timestamp
start : boolean [or perhaps 'type : enum']
_id : long
The other option is to have two tables, one for 'start' entries the other for 'stop' entries.
StartLog StopLog
------------- -------------
job_id : long job_id : long
timestamp timestamp
id : long id : long
What are the pros and cons of each approach? Is there another alternative?
My specific app will be running on SQLite and I'd like to optimise it for speed - but I am interested in generic arguments.