Ask HN: Database or filesystem for logging user actions?
Which do you prefer and why? I am not talking about application logging, only actions users perform, say on a web application, when for example the user logs in, signs up, etc.
Do you plan on providing a search functionality for logs? If you don't want to search, then why do you keep that data at all? You probably do want to search, so probably you do want a DB. Doing search over flat-file data is rather limited in functionality (although it can be very valuable at times); more advanced search means that if you're doing it against flat files, you will have to reconstruct a very crappy DB engine with bugs and limitations.