0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
Commit Graph

1291 Commits

Author SHA1 Message Date
Aaron
ddb69bda2e Add normalized sort spec to query pattern 2009-02-26 11:13:36 -05:00
Aaron
f1ad2c2875 Adjust dependencies 2009-02-26 11:08:23 -05:00
Aaron
851e5545a1 Since we're now using iterative interleaving rather than threads, don't do a table scan if an optimal index is found 2009-02-26 10:44:19 -05:00
Aaron
481f033964 Refactoring 2009-02-26 10:28:27 -05:00
Aaron
5656a475db If plan not doing as well as before, start using other plans too 2009-02-25 19:22:54 -05:00
Aaron
a1775e941a Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-25 16:05:29 -05:00
Aaron
c7cc5c6b4b Add const 2009-02-25 16:03:09 -05:00
Aaron
181a200309 findOne fix 2009-02-25 15:59:01 -05:00
Aaron
bcb1b24bd6 Remove dead code 2009-02-25 15:31:38 -05:00
Aaron
6a5484ad3e Init c_ 2009-02-25 15:31:31 -05:00
Aaron
7325450ff2 findOne use new query optimizer 2009-02-25 15:01:07 -05:00
Aaron
f3e80befb6 Delete using new query optimizer 2009-02-25 14:32:26 -05:00
Eliot Horowitz
60f443b9b1 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-25 14:21:06 -05:00
Eliot Horowitz
b8dac08cff fix copy()
added some debug tools
2009-02-25 14:18:06 -05:00
Aaron
92713cef1c Remove compile warning 2009-02-25 13:34:36 -05:00
Aaron
2338122f64 Stack allocate original op 2009-02-25 12:37:15 -05:00
Aaron
adeeae1f2f Update uses new query optimizer 2009-02-25 12:25:01 -05:00
Aaron
df4bf72f3d Don't use where spec for bounds 2009-02-25 11:33:03 -05:00
Aaron
f026c6825d Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-25 11:06:18 -05:00
Aaron
bedaec4142 Clear query cache if an index is removed 2009-02-25 11:06:03 -05:00
Eliot Horowitz
5bfb5fc082 BSONObj.getOwned() - gets a version that is definitely owned 2009-02-25 10:52:11 -05:00
Aaron
f28536cc20 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-25 10:49:04 -05:00
Aaron
222ea643ad Runner improvements 2009-02-25 10:48:41 -05:00
Aaron
9722627a02 Cleaner 2009-02-25 10:06:56 -05:00
Aaron
28d9cdb43b Fix woSortOrder 2009-02-24 18:53:34 -05:00
Aaron
dee1ff96b9 Add const 2009-02-24 18:37:42 -05:00
Aaron
1f67174066 Uncomment lines 2009-02-24 18:32:08 -05:00
Aaron
b1341cf000 Recording plan configurable 2009-02-24 18:23:11 -05:00
Aaron
0d8dded1c3 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 17:51:58 -05:00
Aaron
17b7897f19 Remember best index for query pattern 2009-02-24 17:48:06 -05:00
Dwight
7a5490d2bd Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 17:45:16 -05:00
Dwight
06ec54c285 oops, recent checking broke everything badly 2009-02-24 17:44:56 -05:00
Eliot Horowitz
ec09c39739 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 17:10:02 -05:00
Eliot Horowitz
46987b2978 BSONObj.woSortOrder - compare 2 objects with a sort key 2009-02-24 17:09:46 -05:00
Dwight
70ad274d41 look for the best match when reusing old extents 2009-02-24 16:55:56 -05:00
Dwight
9a6224cf76 compile windows 2009-02-24 16:43:52 -05:00
Dwight
cef0228f0a Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 16:39:27 -05:00
Dwight
009c4af298 eliminate old warnings that no longer apply 2009-02-24 16:39:08 -05:00
Aaron
4a4b0fe482 Better error detection 2009-02-24 15:45:18 -05:00
Aaron
e3bf4578ec Remove old code 2009-02-24 15:30:16 -05:00
Aaron
1517e4ede3 Add QueryPattern 2009-02-24 15:20:29 -05:00
Aaron
139eb1c3d8 Clean up old code 2009-02-24 14:43:03 -05:00
Aaron
7bfc826646 Remove old code 2009-02-24 14:41:53 -05:00
Aaron
b257287672 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 14:15:37 -05:00
Aaron
4e549f1f3c More tests for 'unhelpful' plans 2009-02-24 14:15:17 -05:00
Eliot Horowitz
500f01c9a5 move fieldset stuff into queryutil.* 2009-02-24 14:14:45 -05:00
Dwight
27a8e218f8 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 13:52:55 -05:00
Dwight
98c8676694 dropcollection now reuses space
dropindex doesn't yet -- coming soon
2009-02-24 13:52:34 -05:00
Aaron
c969a3c4b4 Merge 2009-02-24 13:38:17 -05:00
Aaron
a744fbf06f field bound set simplified query 2009-02-24 13:36:37 -05:00
Aaron
a7eb50116c Manually interleve query optimizer's plans rather than running each plan in a new thread 2009-02-24 11:49:55 -05:00
Aaron
010236b9c2 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-24 10:31:30 -05:00
Aaron
86c4c87be6 New query optimizer checkpoint, minus jstest changes 2009-02-24 10:27:07 -05:00
Dwight
c5fc4e2919 elim signed unsigned warning on windows 2009-02-24 10:21:03 -05:00
Dwight
7012955860 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-23 18:05:56 -05:00
Dwight
3111e5411e BSONObjBuilderValueStream bug fix 2009-02-23 18:05:38 -05:00
Aaron
743665fc93 Add 'cursorInfo' command, remove old method of getting information about cursors 2009-02-23 17:55:13 -05:00
Aaron
4e7e04d59c Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-23 17:26:51 -05:00
Aaron
13b0d2c1cf Index objects even if don't have a field from index spec 2009-02-23 17:26:36 -05:00
Eliot Horowitz
1d87ecfb11 fix nReturned on replyToQuery 2009-02-23 17:08:34 -05:00
Aaron
8cb20c2548 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-23 09:52:30 -05:00
Dwight
b23ec0964c compile windows 2009-02-23 09:50:45 -05:00
Aaron
e663625021 First cut of query and update using new qo 2009-02-23 09:50:31 -05:00
Aaron
592edec271 Cleaner 2009-02-20 16:17:34 -05:00
Aaron
27841a5363 Compile linux 2009-02-20 16:12:22 -05:00
Aaron
93ac1411b9 Compile windows 2009-02-20 15:37:24 -05:00
Aaron
bb440d034a Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-20 15:19:49 -05:00
Aaron
a4fc389f6b Count function using new query optimizer 2009-02-20 15:19:41 -05:00
Eliot Horowitz
206b92fce3 merge conflict checkpoint
some cloneCollection fixes
some moveShard work
2009-02-20 12:47:59 -05:00
Aaron
db0f38e88b Dummy count implementation 2009-02-20 11:08:22 -05:00
Aaron
6f25a72ec3 'better' LazyString 2009-02-20 10:48:32 -05:00
Eliot Horowitz
3f5102bf27 processinfo class and meminfo command, only works on darwin for the moment 2009-02-20 09:34:25 -05:00
Aaron
89a58c46ad Clean up logging 2009-02-19 15:16:36 -05:00
Aaron
0d08c1ea2e Print help with the other command dispatch function 2009-02-19 15:14:31 -05:00
Aaron
4753a81753 Add help for clone collection command 2009-02-19 15:07:56 -05:00
Aaron
3f61af1a47 Build start and end keys checkpoint 2009-02-19 15:04:10 -05:00
Aaron
d1475ffba2 Use const ref for bson objects 2009-02-19 14:23:07 -05:00
Aaron
250e0fd490 Implement hints, test direction 2009-02-19 13:58:22 -05:00
Aaron
b035e4f92f Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-19 12:03:26 -05:00
Aaron
6df7d02ce8 Don't create string unless we're actually going to log 2009-02-19 12:03:15 -05:00
Eliot Horowitz
33d9b928fc Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-19 11:33:25 -05:00
Eliot Horowitz
f23cb88f23 reset dbmessage location 2009-02-19 11:33:15 -05:00
Aaron
fd756add64 More correct definition of 'optimal' 2009-02-19 10:26:46 -05:00
Aaron
e822368108 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-19 10:01:29 -05:00
Aaron
c8f5a1963c More query plan details, choosing an optimal plan if there is one 2009-02-19 10:01:20 -05:00
Aaron
b1d9032447 Get rid of stringable class, use implicit type conversion to string instead 2009-02-18 22:17:30 -05:00
dwight
0c99b79e0b minor/typo 2009-02-18 19:34:46 -05:00
Aaron
3e45526a18 Make copying indexes optional; don't bother adding the option to shell, it's on by default 2009-02-18 17:10:51 -05:00
Aaron
e02e8e1e1e Copy indexes too 2009-02-18 16:55:19 -05:00
Aaron
d655991b1b Don't require admin 2009-02-18 16:43:14 -05:00
Aaron
eb373366f6 Add cloneCollection command 2009-02-18 16:24:08 -05:00
Aaron
b251990286 More metadata about query plan 2009-02-18 15:25:50 -05:00
Aaron
f05bd0a7be Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-18 13:42:55 -05:00
Aaron
593bf1f126 virtual dtors == good 2009-02-18 13:42:32 -05:00
Eliot Horowitz
94b7902390 md5 of nothing is the same as md5 of "" 2009-02-18 13:24:43 -05:00
Eliot Horowitz
7412a333fc filemd5 supports root
BugzID: 1165
2009-02-18 13:11:22 -05:00
Eliot Horowitz
b6699b50b3 help for filemd5 2009-02-18 11:29:04 -05:00
dwight
90f39126fc log more on commands 2009-02-18 09:45:49 -05:00
Geir Magnusson Jr
9bd71ee240 dbcommands.cpp : add log() message when a closeAllDatabases message is recieved and run 2009-02-18 09:13:03 -05:00
Aaron Staple
b30b8b3299 Fix unit test failure related to initialization order of static variables 2009-02-17 23:09:37 -05:00
Aaron
247d3e69a4 Some ordering logic 2009-02-17 20:57:36 -05:00
Aaron
1c978eaace Better error message 2009-02-17 19:46:37 -05:00
Aaron
42de993149 More field bounds 2009-02-17 19:39:35 -05:00
Aaron
7e7722ea06 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-17 18:57:24 -05:00
dwight
f4a3b464ec Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-17 18:40:59 -05:00
dwight
1da901f2bf compile mongos on windows 2009-02-17 18:40:27 -05:00
Aaron
384c4881a1 Fix another memory leak 2009-02-17 18:39:52 -05:00
Aaron
09f1a31b41 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-17 17:23:59 -05:00
Aaron
fb656c60d2 Fix memory leak 2009-02-17 17:11:40 -05:00
Aaron
41c1520dea Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-17 15:53:24 -05:00
Aaron
0e38bc5a8f FieldBound work 2009-02-17 15:53:19 -05:00
dwight
a44c512852 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-17 14:03:43 -05:00
Aaron
45daee2130 Merge 2009-02-17 11:16:13 -05:00
Aaron
2c1662cc83 Add command closeAllDatabases 2009-02-17 11:11:13 -05:00
Eliot Horowitz
566af4dc73 new java js system 2009-02-15 16:12:54 -05:00
dwight
667c004013 a little dbclient.h cleanup (minor) 2009-02-13 20:04:13 -05:00
Dwight
da53450036 fix to properly check for dupkey with unused keys 2009-02-13 12:58:05 -05:00
Dwight
80e95f860a Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-13 11:26:10 -05:00
Dwight
9c286b438f btree: fix a bug (missing code) when reinserting a key that was marked unused 2009-02-13 11:25:52 -05:00
Eliot Horowitz
65687c9303 command helper system
runCommand( { "blah" : 1 , help : true } )
in shell db.commandHelp( "blah" )
2009-02-13 09:44:07 -05:00
Dwight
c67eca8a2f c++ client:
allow BSONElements with the labeler
example
2009-02-12 18:20:52 -05:00
Dwight
0cc3993211 Merge branch 'master' of git@github.com:mongodb/mongo 2009-02-12 15:03:54 -05:00
Dwight
459d62347b replication / exception throwing bug fix
--only option added
2009-02-12 15:03:38 -05:00
Eliot Horowitz
6e345fc61d make shell output more info for bindata
BSONElement.binDataType helper
2009-02-12 14:30:45 -05:00
Dwight
4c03dc15ed replication bug with __updateObjects() and logOp() 2009-02-12 12:19:00 -05:00
Aaron
84231c6919 Wait for replication to finish before grabbing db mutex 2009-02-12 11:37:30 -05:00
Aaron
cd2a542337 Select index if query contains condition for first index field 2009-02-12 10:11:02 -05:00
dwight
bb13742663 better err msg 2009-02-12 09:20:26 -05:00
Aaron
fe8ed2defa Use default handler for SIGQUIT 2009-02-11 15:50:27 -05:00
Aaron
c326d4a508 Can pick index with more key specificity than required by sort / find spec 2009-02-11 15:37:51 -05:00
Aaron
878cffc529 handle SIGQUIT too 2009-02-11 14:30:46 -05:00
Aaron
bd3b8ec5e1 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-11 13:18:01 -05:00
Aaron
6224cd9f29 Add initial perf tests 2009-02-11 13:17:52 -05:00
Dwight
4dfbeda3db while cloning don't fail the whole process if one object has a uassert problem 2009-02-11 12:13:08 -05:00
Dwight
020b6035b4 more sensible vesrion # 2009-02-11 11:38:39 -05:00
Dwight
d063654ff5 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-11 11:28:56 -05:00
Dwight
9f5fe79f2f little things: hack for windows filenames, better logging 2009-02-11 11:28:49 -05:00
Eliot Horowitz
827e76b779 filemd5 command 2009-02-11 10:37:27 -05:00
Aaron
86b5efcd1e Call clientStop() before releasing mutex 2009-02-11 10:24:32 -05:00
Dwight
85298ec174 wasn't logging enough 2009-02-11 09:58:01 -05:00
U-ELIOT-019992DFC\Administrator
f694f826dd windows fix for finding jars 2009-02-11 09:27:21 -05:00
U-ELIOT-019992DFC\Administrator
1515ab7f6b hack to not do deal with c/c++ link issue on windows release build
only effects md5 test on win release
2009-02-11 09:15:34 -05:00
Dwight
9cc79db551 fix a bug with dup _id keys, but fix is in comments for tonight
make show dbs pretty

2009-02-10 17:42:31 -05:00
Dwight
2b96bea8d0 db.vcproj updated 2009-02-10 15:39:47 -05:00
Dwight
693a560764 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-10 14:23:01 -05:00
Dwight
75d201f000 fix release build to build for mongos visual studio 2009-02-10 14:22:50 -05:00
Aaron
565d374283 Use @file to tell doxygen to document globals, add more doc for BSON() and QUERY() 2009-02-10 14:04:03 -05:00
Aaron
72eb0d5072 Just get rid of IN label 2009-02-10 13:16:34 -05:00
Dwight
015bbe7316 better name 2009-02-10 12:57:06 -05:00
Dwight
27729042be compile windows 2009-02-10 12:52:41 -05:00
Dwight
3f143e4e64 elim compile warning 2009-02-10 12:40:17 -05:00
Aaron
ae69ee27a3 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-10 11:21:39 -05:00
Aaron
ea431a83dc Make labeled subobj specs easier in c++. Now you can do BSON( "a" << GT << 4 << LTE << 22.3 << NE << "foo" ) 2009-02-10 11:21:13 -05:00
Dwight
a52fc9a5a9 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-09 17:40:53 -05:00
Dwight
192c4e5708 comments 2009-02-09 17:40:45 -05:00
Aaron
ac5b3fee3f Slave override for listDatabases 2009-02-09 17:22:26 -05:00
Aaron
16652466ec Refactor hint code 2009-02-09 17:14:18 -05:00
Aaron
e0843d7476 Compile osx 2009-02-09 16:57:07 -05:00
Dwight
5390dbc920 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-09 16:24:56 -05:00
Dwight
52ac9edf31 count() for c++ client 2009-02-09 16:24:47 -05:00
Aaron
166716bb25 dbtop 2009-02-09 15:57:30 -05:00
Dwight
8cb17548c2 bsonobjbuilder cleanup 2009-02-09 15:38:26 -05:00
Dwight
147948c7b3 doneAndDecouple() -> obj() 2009-02-09 13:04:32 -05:00
Dwight
10d5a55c35 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-09 12:53:04 -05:00
Dwight
a01b4063b9 doxygen comments 2009-02-09 12:52:47 -05:00
Aaron
31df4e48b2 Iterator doesn't work on empty object, so check if empty first 2009-02-09 12:46:40 -05:00
Aaron
657c78a08f Hints don't clobber sort ordering spec 2009-02-09 11:42:39 -05:00
dwight
cf65d86131 doxygen for bsonobjiterator 2009-02-08 21:00:26 -05:00
dwight
d45688ce1d fix thorwing of exception wasn't right (dbclientconnection) 2009-02-08 16:02:48 -05:00
Aaron
c2cde25267 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-06 17:16:41 -05:00
Aaron
3ecc0eb114 Massert on invalid BSONObj size; removes sporadic unittest stack trace in randomized validation testing 2009-02-06 17:05:11 -05:00
Dwight
58d7ca3c1d Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-06 16:56:21 -05:00
Dwight
7d593671fe rename classes and add a new client connect method 2009-02-06 16:56:14 -05:00
Aaron
fc89a866de Add dummy sizeOnDisk for in-memory databases; 1 is Eliot's suggested sentinel value 2009-02-06 16:50:08 -05:00
Dwight
4d5f0e9a78 clean up exception classes 2009-02-06 16:21:49 -05:00
Dwight
176c9a1e25 minor recstore 2009-02-06 15:56:36 -05:00
Eliot Horowitz
ee6c8943a5 NamespaceString 2009-02-06 15:43:47 -05:00
Dwight
e19fd7ac0c Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-06 15:31:11 -05:00
Dwight
c2476dbc12 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-06 15:29:08 -05:00
Dwight
8ceb5627e5 bg page writer can run concurrently now 2009-02-06 15:29:02 -05:00
Aaron
0ff2c94721 Correctly check db name against 'admin' 2009-02-06 15:12:45 -05:00
Aaron
7fddf99109 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-06 14:49:30 -05:00
Dwight
0b210bfa0e check if closed properly, recstore 2009-02-06 14:33:26 -05:00
Aaron
3b05df2850 Merge branch 'master' of ssh://aaron@git.10gen.com/data/gitroot/p 2009-02-06 14:27:10 -05:00
Dwight
9bf2bf3025 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-06 14:22:05 -05:00
Eliot Horowitz
ee9960b582 pragma once 2009-02-06 14:11:02 -05:00
Dwight
3afb4cbb8c tweak asserts 2009-02-06 14:06:38 -05:00
Aaron
e62fefd18c Init ns index if it exists 2009-02-06 13:49:33 -05:00
Dwight
9e237c3871 Merge branch 'master' of git.10gen.com:/data/gitroot/p 2009-02-06 13:30:27 -05:00
Dwight
94f125e855 new pagewriter
File class
sleepmillis fixed
2009-02-06 13:29:57 -05:00
Aaron
cf8e9b31b4 Create .ns file lazily 2009-02-06 12:45:05 -05:00
Aaron
6e66009dc0 Catch Socket Exception 2009-02-06 12:44:50 -05:00
Aaron
c9496a4ec5 Rename inc to set for logging 2009-02-05 22:14:35 -05:00
Dwight
75712322a1 $SET change
recstore memory leak
2009-02-05 16:17:46 -05:00
Dwight
0c2e6bc6e9 more shell command helpers 2009-02-05 16:05:06 -05:00
Aaron
fa450b1423 Doc 2009-02-05 14:11:40 -05:00
Aaron
f6dfa61f25 doc 2009-02-05 13:03:26 -05:00
Aaron
6b88cdc56c More validation for modifier updates 2009-02-05 11:51:51 -05:00
Aaron
9b7f4d830d Don't update pattern if no key in matching object 2009-02-05 10:10:53 -05:00
Aaron
04c18a8576 oops 2009-02-04 20:08:43 -05:00