I've been trying to decide how I will log and query data on the SD card. So far I've just been creating text log files and haven't fully decided on how I will be querying them. It seems somewhat non-trivial to get data from the last X loggings or from a range of loggings. A lot of seek, read, reverse seek, with the possibility of having to traverse multiple log files to get a range (I archive log files after a certain size so the last 10 loggings will probably be in log.log, but may be split over log.log and log.log20140819)
I was wondering if anyone has had luck implementing an existing DBMS? Porting SQLite or NewLib (as suggested here, http://stackoverflow.com/questions/11453404/database-without-operating-system-required-for-embedded-system)