3 ms·
I agree with most points in the article except for the database part. > Since this is not a distributed systems problem and the data fits in memory, why introd
by antisthenes 3y ago
I agree with most points in the article except for the database part.
> Since this is not a distributed systems problem and the data fits in memory, why introduce the additional complexity and dependencies of a database for something that you can solve with 20 lines of simple code?
Because this is a question about getting the right data, and SQL Databases are...extremely good for filtering, sorting and grouping... data. Besides, every page visit from every client is a unique observation, and the principle of...tidy data suggests that every observation use a database row.
Why solve this with 20 lines of code, when you can solve it in a 4 line SQL query?