Re: integration with custom indexing

13 views
Skip to first unread message

David Hows

unread,
Feb 19, 2013, 12:16:00 AM2/19/13
to mongod...@googlegroups.com
Hi Aurimas,

I'm not 100% on what you are trying to achieve, but I have taken this to mean you wish to have some form of external indexing. There are a few ways which i can see you attempting to go about this:
1) Try and find a way to structure your documents and queries to take advantage of mongoDB's existing indexing structure.
2) Look at tailing the oplog of a replica set. MongoDB's oplog is used for replication and contains a list of all recent document changes. This may be a worthwhile place to try and gather this information from. More details on the oplog is available within mongoDB's documentation - http://docs.mongodb.org/manual/core/replication-internals/#oplog-internals
3) You may simply wish to build this into your application, so all queries execute a function to perform this kind of update after the document has been inserted into mongo
4) If you are familiar with C++ you can create your own fork of the mongoDB source code and modify as needed. It is available at https://github.com/mongodb/mongo

Regards,

David
Reply all
Reply to author
Forward
0 new messages