Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
binaryfinery
· 15y ago · 0 comments
Wouldnt it be faster to have the log_id in a variable so you don't have to do a select and an update? In fact wouldnt it be faster to just store 48 hours and delete the oldest 24? Is it going to kill you to have 47:59 hours of logs?
Comments
[–]
spicyj
15y ago
That's exactly my thought. You wouldn't even need a database then and you could use a flat file for each day.
[–]
lurchpop
15y ago
they probably have this in SQL because of the ease-of-use to run stats on it though.