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

No index on "_id" column #19

Closed
miroslav-matejovsky opened this issue Mar 15, 2014 · 1 comment
Closed

No index on "_id" column #19

miroslav-matejovsky opened this issue Mar 15, 2014 · 1 comment
Assignees
Milestone

Comments

@miroslav-matejovsky
Copy link

I am using fongo with Spring MongoTemplate and if I do not create index for "_id" column explicitly with @indexed annotation test fails. (with actual mongoDB the test passes)

link to my test: https://github.com/bassmake/RestItemRanker/blob/master/src/test/java/sk/bsmk/itemranker/persistence/integration/ItemMappingTest.java

link to persisted class: https://github.com/bassmake/RestItemRanker/blob/master/src/main/java/sk/bsmk/itemranker/persistence/domain/Item.java

@twillouer
Copy link
Collaborator

Right, thanks for the report.

The latest version of mongodb is now adding in system.indexes the "_id" keys.

@twillouer twillouer added this to the 1.3.9 milestone Mar 16, 2014
@twillouer twillouer self-assigned this Mar 16, 2014
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

2 participants