[SERVER-2395] Allow multidoc (bulk) insert Created: 22/Jan/11 Updated: 12/Jul/16 Resolved: 29/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.0 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Greg Studer |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
Check the first argument, if it is array, treat each item as an doc and do a bulk insert. |
| Comments |
| Comment by auto [ 30/Sep/11 ] |
|
Author: {u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}Message: can't use count in test |
| Comment by auto [ 29/Sep/11 ] |
|
Author: {u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}Message: final fixup for |
| Comment by auto [ 29/Sep/11 ] |
|
Author: {u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}Message: test case for bulk insert during sharding |
| Comment by auto [ 29/Sep/11 ] |
|
Author: {u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}Message: basic test for bulk insert from shell |
| Comment by auto [ 29/Sep/11 ] |
|
Author: {u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}Message: Add bulk insert to shell |
| Comment by Greg Studer [ 29/Sep/11 ] |
|
Actually I figured it'd be useful for testing, since there a bulk insert issue that I didn't want to use the PHP driver to reproduce is the reason I created the branch. It's a pretty simple change. |
| Comment by Scott Hernandez (Inactive) [ 19/Sep/11 ] |
|
Yes, mostly for convenience and orthogonality with other drivers; ?js + bulk != perf? (probably not) |
| Comment by Dwight Merriman [ 19/Sep/11 ] |
|
it seems to me bulk insert isn't necessarily needed in the shell as performance there isn't super critical and the shell may be slower than the db anyway. however db.foo.insert( [.., ..., ...] ) might be convenient. |
| Comment by Greg Studer [ 19/Aug/11 ] |
|
Created branch to fix this while tracking down another bug. |