Migrate Reference Documentation to Manual from Wiki (DOCS-262)

[DOCS-200] import tools give no description of what the objcheck option does Created: 07/May/12  Updated: 27/Sep/12  Resolved: 27/Sep/12

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Sub-task Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 20 weeks, 6 days ago

 Description   

There are a few references to an --objcheck option on http://www.mongodb.org/display/DOCS/Import+Export+Tools , but there's no explanation of what that does.



 Comments   
Comment by auto [ 27/Sep/12 ]

Author:

{u'date': u'2012-09-27T09:35:08-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-200 additional clarification
Branch: master
https://github.com/mongodb/docs/commit/f619029031ec8ba88c5185bf8c9862e4c3f0e226

Comment by auto [ 27/Sep/12 ]

Author:

{u'date': u'2012-09-27T09:34:15-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: merge: DOCS-200
Branch: master
https://github.com/mongodb/docs/commit/e7e779b6d3d04e0c7f11c5e505e32950df8394bc

Comment by auto [ 27/Sep/12 ]

Author:

{u'date': u'2012-09-27T08:31:36-07:00', u'email': u'kay.kim@10gen.com', u'name': u'kay'}

Message: DOCS-200 objcheck option for mongorestore
Branch: master
https://github.com/mongodb/docs/commit/dec86811d7103974fa808da4e9566c8e6f59e723

Comment by Chris Westin [ 07/May/12 ]

The wiki page lists it twice: once for mongorestore, and again for bsondump, which makes no sense at all. We should fix that. (It looks like the filter option doesn't make sense for bsondump either. Bad copy-paste?)

The question revolves around what does it mean to "validate an object?" The querent thought this meant it would check to see if it already existed in the database. Obviously that's not it. From its sole use for mongorestore, it sounds like this validates the binary representation to make sure it is well-formed bson. I would amend both locations to mention that.

Comment by Sam Kleinman (Inactive) [ 07/May/12 ]

To the best of my understanding --objcheck only exists for mongorestore, not for mongoimport, and it just validates objects before inserting them to prevent writing junk to the database. The following documentation in the new docs exists, but it's clearly minimal...

http://docs.mongodb.org/manual/reference/mongorestore/#cmdoption-mongorestore--objcheck

How/would you like this updated further or is this good?

Generated at Thu Feb 08 07:38:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.