I've been storing some simple user click-actions in text files so I can easily refer to them. I'm not looking to go the full db route, as I'm looking to learn hadoop, and should be able get the data from my log files, but until then I'm looking for a fairly light-weight solution.
I could continue with the txt file route, but it ends up being a lot of files (one for each type of user click).
What i was thinking of doing is putting an associative array into a text file (one for each day), and then reading in that associative array and updating key=>value to represent the click area and number of clicks.
Of course, I can't store an associative array directly in a txt file, without going through a bunch of 'read into an array', 'check array for existing key', 'update array', print out to txt'.
All of this just doesn't seem very efficient (even just reading the txt into the array is currently a bit of a pain).
I'm hoping somebody has a better suggestion for how I should do this.