Im wondering if I should bother changing my system.
Currently when a video is viewed, it runs a query that does
UPDATE table SET hits=hits+1 WHERE id = $id.
very simple, except they appear in the slow query log all the time, sometimes with 3-4 seconds of query_time.
What if I INSERT every view as a new row into a memory table, and commit changes to DB with cron every hour? Will there be a significant difference in performance? Are there any alternatives?