Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix index creation and query #112

Open
TomMD opened this issue Feb 23, 2020 · 0 comments
Open

Fix index creation and query #112

TomMD opened this issue Feb 23, 2020 · 0 comments

Comments

@TomMD
Copy link

TomMD commented Feb 23, 2020

Index creation is broken (see #111).

In Mongo 3.6+ we can use the new MSG_OP format. The MSG OP for index creation isn't documented but they indicate the c library is a suitable reference (https://github.com/mongodb/mongo-c-driver/blob/master/src/libmongoc/src/mongoc/mongoc-index.c#L26). Hopefully fixing index creation and query will be simple as declaring a new structure, defining the BSON encoding, defining the MSG_OP Notice and opcode next to the existing Update, Insert, Delete, and KillCursors values, and exposing the high level functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant