Commit Graph

78 Commits

Author SHA1 Message Date
Dwight
2628d0213a refactor and clean up some index building code
no longer allow two indexes with same key pattern (with diff names)
2010-01-15 16:05:14 -05:00
Mathias Stearn
6ed57e7166 Use index for {$regex: "^foo"} queries 2010-01-14 23:24:22 -05:00
Eliot Horowitz
9e96ad0a07 fix unit test 2009-12-29 23:50:45 -05:00
Eliot Horowitz
0ab8149a8e uassert/massert take error code SERVER-112 2009-12-28 16:43:43 -05:00
Dwight
65ae020708 QueryMessage was being instantiated twice on every query - fixed. 2009-12-21 14:22:23 -05:00
Dwight
4390797b88 make query optimizer map thread-safe 2009-12-09 18:13:36 -05:00
Dwight
25bb636eb4 some initial visual studio 2010 support 2009-11-30 12:09:39 -05:00
Dwight
844d96c19f allow more indexes
do not revert to an earlier db version or you will have problems
2009-10-21 16:00:40 -04:00
Mathias Stearn
d6a19bb42d Eliminate warning MINOR 2009-10-15 14:08:40 -04:00
Eliot Horowitz
87d435a706 fix test and 1 assert 2009-10-14 15:36:49 -04:00
Dwight
cf7a86e0f9 make lasterror threadsafe
rename Connection -> Client
lasterror code easier to read
bunch of windows warnings eliminated
2009-10-12 15:12:16 -04:00
Dwight
ff54f16271 add Connection class
beginnings that is
2009-10-09 14:59:44 -04:00
Eliot Horowitz
d3ad7fa491 fix windows 2009-10-01 10:41:22 -04:00
unknown
7153023470 win pre-compild headers 2009-09-30 14:32:17 -04:00
Eliot Horowitz
34e48aaf5d new unit test framework 2009-09-17 17:23:38 -04:00
Aaron
4a7330fd22 SERVER-100 generate precise btree intervals in FieldRangeSet::indexBounds 2009-09-07 13:49:22 -07:00
Aaron
6840c4e03a SERVER-100 checkpoint move index bounding code to FieldRangeSet 2009-09-07 11:44:41 -07:00
Aaron
05b8207cc0 MINOR SERVER-100 specific tests for FieldBound operations 2009-09-07 10:39:32 -07:00
Aaron Staple
b4ed11064c SERVER-100 checkpoint FieldRange more fine grained bounds using 2009-09-06 20:34:28 -07:00
Aaron Staple
9fd0168eff SERVER-100 checkpoint field range organization improvements 2009-08-11 16:43:30 -04:00
Eliot Horowitz
6746cd2493 get rid of Option_ALLFLAGS 2009-07-29 11:16:33 -04:00
Dwight
b4f0a2c1fb fix broken test file from last commit 2009-07-07 14:12:53 -04:00
Eliot Horowitz
7bb37b3fd2 fix $(gl)te? scanning for numeric indexes SERVER-99 2009-07-06 10:42:22 -04:00
Aaron
11baa3226f fix tests MINOR 2009-05-26 15:58:32 -04:00
Aaron
5700a5040d include query fields generating trivial bounds in exact key match check 2009-05-13 18:09:25 -04:00
Aaron
68b1edd0b0 for exact key match, query and index fields must be identical sets 2009-05-13 11:27:47 -04:00
Aaron
b9a2a82837 get rid of unused 'keyMatch' annotation in query optimizer 2009-05-13 11:17:24 -04:00
Aaron
b7182b610a reset shared database after each test suite MINOR 2009-05-12 16:37:23 -04:00
Aaron
d9129f8cb2 unit tests use same database to reduce disk usage 2009-05-12 15:58:26 -04:00
Aaron
6ea9c81aa3 DBDirectClient uses main db mutex recursively and preserves database context 2009-05-06 11:32:48 -04:00
Aaron
7f6d4af088 update test MINOR 2009-04-24 18:19:40 -04:00
Aaron
bd078cd876 add 'unique' option to helpers' ensureIndex 2009-04-24 11:36:42 -04:00
Aaron
54f806da95 don't update id index when id field is to be added 2009-04-21 17:01:33 -04:00
Aaron
eb5fa5c7d8 add index id in userCreateNS, unless this is not requested in create spec 2009-04-21 15:42:22 -04:00
Aaron
7d85516931 fix interpretation of non numberic index direction spec 2009-04-20 18:17:52 -04:00
Aaron
80847b561c add unique option when creating index in c++, js drivers; basic unique key unit tests 2009-04-20 13:51:54 -04:00
Aaron
26bddf1ef8 log separate op for each deleted object 2009-04-09 13:30:28 -04:00
Aaron
6458658240 add numberic comparison test MINOR 2009-04-06 17:45:29 -04:00
Aaron
5a276ef621 Replace emptyObj with BSONObj() 2009-03-19 16:23:04 -04:00
Aaron
2ba030abe0 Move index cache to NamespaceDetailsTransient 2009-03-03 17:30:26 -05:00
Aaron
9ba067542d Set exclusive for regex upper bound, add some tests 2009-02-27 11:48:39 -05:00
Aaron
4487004dac FieldBoundSet handles inclusive / exclusive bounds 2009-02-27 11:22:12 -05:00
Aaron
4d3100a66d More accurate nScanned recording with plan 2009-02-26 15:09:44 -05:00
Aaron
4eae90b0a6 Start using order with pattern in optimizer 2009-02-26 11:33:23 -05:00
Aaron
ddb69bda2e Add normalized sort spec to query pattern 2009-02-26 11:13:36 -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
5656a475db If plan not doing as well as before, start using other plans too 2009-02-25 19:22:54 -05:00
Aaron
707b932df4 Delete tests 2009-02-25 16:37:12 -05:00
Aaron
181a200309 findOne fix 2009-02-25 15:59:01 -05:00
Aaron
df4bf72f3d Don't use where spec for bounds 2009-02-25 11:33:03 -05:00