Closed TomMD closed 1 year ago
N.B. https://docs.mongodb.com/manual/reference/system-collections/
Starting in MongoDB 4.2,
.system.indexes has been removed (access to the collection has been deprecated since 3.0). To list the inndexes, use the listIndexes command instead.
Other communities have had issues too, such as dart-mongodb.
Interestingly, even as far back as 3.6
this test still fails but for other reasons. In MongoDB 3.6 the test successfully creates the index but getIndex fails to reflect that change (index creation confirmed using mongo shell).
A quick wireshark of the mongoshell reveals it is using OP_MSG though despite staring at it I can't make heads or tails of the body section that appears to be included which causes creation of the index. Hopefully someone who works this project is already familiar.
PING! Is this project active? It seems the Haskell community has only Mongo (via this library) and cassandra available to it as NOSQL options.
The project is maintained. If you have a fix I'll be happy to merge it.
Thanks @VictorDenisov - confirmation is good to hear. I'm using this library and feel there are multiple needs piling up that I'd like to deconflict with you and any plans you might already have. Before spewing all that out I'll note this PR was just to be up front about the status of things and was hoping it could merge regardless of a fix - more of a truth in advertising.
Thoughts for improving MongoDB + Haskell in 2020:
If all these sound reasonable to you then we can get to work addressing each issue.
Sounds like a solid plan. I'm actually happy to help you. I was just a bit reluctant developing anything without clear use case and without any evidence that anybody needs it. I created a project called Development. Feel free to create issues in that project for tracking progress. If you could create granular enough tickets then I can pick them up and work on them.
Hi @TomMD. Any movement on this PR? I presume this PR only demonstrates the problem and not fixes it.
Sorry, work took me on other paths. We're not using mongo right now. If we did then it would be lots of work to get both the new command format (to support document db) and index creation working.
You are right that this PR only shows the problem and does not fix it.
This PR adds a test that shows the index creation is currently broken.