Did not know mongodb can add indexes on multidimensional arrays, I'll check it out.
I will have to make some tests, since while I only insert a few thousand records (50-100k), I need to update a few fields in all of them, so not sure how fast that gets done in mangodb.
Currently, I store each object twice:
One in binary format (so I can pass it between scripts), and once in Judy format so I can work with it.
In my app, 11k records take 0.3sec to process (updates and so on), but 1.2sec and 30MB (instead of 185MB normal arrays) to igbinary_unserialize and turn the data to a Judy object.
BUT, at this point I don't need all the data, only part of it, so since I can pick what to show, the 1.2 sec turns to 0.1 and 30MB to 300KB.

Bookmarks