[SERVER-14976] Ghost Documents Created: 20/Aug/14 Updated: 10/Dec/14 Resolved: 20/Aug/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Oliver Yeh | Assignee: | Ramon Fernandez Marina |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Comments |
| Comment by Ramon Fernandez Marina [ 20/Aug/14 ] | ||
|
yeho, this is indeed One way to clean up your data could be to insert an additional field temporarily:
and then query for documents where {valid : 0}. You may also want to know about the failIndexKeyTooLong parameter for MongoDB 2.6 Regards, | ||
| Comment by Oliver Yeh [ 20/Aug/14 ] | ||
|
2.6.3. I recently upgraded from 2.4.8. I do have keys that are longer than 1024 characters and I am trying to delete it to cleanup the database but I can't query for them. Also, is there any way to edit the details of this bug report? I pressed "Create Issue" too soon before completing the necessary details. Now I can only add comments. | ||
| Comment by Ramon Fernandez Marina [ 20/Aug/14 ] | ||
|
Hi yeho, do you have documents with keys longer that 1024 characters? Can you send us a dump of your database? What version of MongoDB are you using? | ||
| Comment by Oliver Yeh [ 20/Aug/14 ] | ||
|
> db.apples.find({"_id": {$type: 1}}).count() => 0 > db.apples.find({"_id": {$exists: false}}).count() => 0 I believe this is related to https://jira.mongodb.org/browse/SERVER-5290 |