Eliot Horowitz
d790a3ec6d
change BSONObj::shallowEqual to binaryEqual
2011-08-16 14:19:44 -04:00
Mathias Stearn
b3204f8490
Don't moveToFront if shardKey is _id
2011-08-08 19:57:36 -04:00
Mathias Stearn
0e20be567e
use LOG(x) everywhere in mongos
2011-08-08 19:52:56 -04:00
gregs
6bf06f445e
don't allow multikey shard indices or array values in shard keys
2011-08-04 12:54:16 -04:00
dwight
600f2eef36
SERVER-2935 fix woEqual which wasnt equalling ints and doubles
2011-06-01 09:35:42 -04:00
Mathias Stearn
244b162111
Use intrusive_ptr rather than shared_ptr for BSONObj
...
Advantages:
* Owned BSONObj now uses 1 heap allocation rather than 3
* sizeof(BSONObj) is now 16 rather than 24 (on 64 bit)
* perftest bson shows it to be much faster
Change in BSONObj constructor API for owned case to make sure old code gets
updated to allocate room for the ref count. Anyone using BSONObjBuilder doesn't
need to worry about this change.
2011-04-03 20:50:45 -04:00
Eliot Horowitz
b828d21630
ran astyle SERVER-2304
2011-01-04 00:40:41 -05:00
Mathias Stearn
cd96b28f0c
Windows build fix. SERVER-1540
2010-09-23 15:03:02 -04:00
Mathias Stearn
d97fd357f7
Don't run moveToFrontBenchmark
2010-09-22 19:29:58 -04:00
Mathias Stearn
48723d6e10
Simple benchmark of moveToFront()
2010-09-22 17:50:50 -04:00
Mathias Stearn
456493083e
move code into ShardKeyPattern::moveToFront() and add unit tests. SERVER-1540
2010-09-22 17:50:50 -04:00
Eliot Horowitz
9d53bc19ed
checkpoint for re-write of migrate transfer
...
SERVER-1239 SERVER-1404
NOT FULL WORKING YET
2010-07-15 14:18:26 -04:00
Mathias Stearn
c460e969ac
compound key checkpoint SERVER-951
2010-07-13 23:21:20 -04:00
Mathias Stearn
2b2354066a
canOrder isn't used so yanking
2010-07-13 23:21:19 -04:00
Alberto Lerner
105ab908e4
SERVER-1185 A bit of prep-ing before the actual changes
2010-06-30 20:23:38 -04:00
Mathias Stearn
1d57896a64
compile fix
2010-05-04 17:40:40 -04:00
Mathias Stearn
330f0fbe2c
shardkey const correctness
2010-05-04 16:49:04 -04:00
Dwight
bd28578ab8
stdafx->pch
2010-04-27 15:27:52 -04:00
Eliot Horowitz
d72a7fcfca
sharding: allow unique indexes if key is more specific than shard key SERVER-917
2010-04-15 10:59:13 -04:00
Mathias Stearn
4cde3da0f5
Remove relevantForQuery. SERVER-947
2010-04-13 00:10:55 -04:00
Eliot Horowitz
0ab8149a8e
uassert/massert take error code SERVER-112
2009-12-28 16:43:43 -05:00
Mathias Stearn
200a68a1ff
Removing unused functions
2009-12-15 15:38:25 -05:00
Mathias Stearn
eba078d053
Get rid of compareValues
2009-12-14 17:06:29 -05:00
Mathias Stearn
28141877ee
Remove ill-planned nested/dotted split. Keep everything dotted.
2009-12-09 18:57:19 -05:00
Mathias Stearn
dcf3a10eea
Start using Date_t. Can anyone think of a better name?
2009-12-09 12:00:17 -05:00
Mathias Stearn
d538c3c8b4
fix broken test. MINOR
2009-11-30 17:27:52 -05:00
Mathias Stearn
9fcf4ba1ef
Support embedded fields for shard keys. SHARDING-48
...
Needs more testing.
2009-11-04 15:06:36 -05:00
Mathias Stearn
6e135afa26
Constify Chunk::getMin and getMax
2009-11-04 15:06:36 -05:00
Eliot Horowitz
d70e410089
cleaning
2009-10-27 11:34:53 -04:00
Eliot Horowitz
75e16447a4
starting sharding name cleanup SHARDING-25
2009-08-31 16:31:50 -04:00
Eliot Horowitz
f0e44b2907
use new append(Min|Max)Key
2009-08-11 04:55:35 -04:00
Dwight
e84e62cc53
sharding: fix what looks like a bug in largestElementForKey (which actually may not be used currently anyway)
2009-08-04 13:03:10 -04:00
Dwight
733ba1e11d
first cut off NumberLong (64 bit ints) in BSON
2009-08-03 14:16:49 -04:00
Eliot Horowitz
00df88c21d
moved BSONObjIterator::more to BSONObjectIteratore::moreWEOO()
...
added _more temporarily
SERVER-101
2009-06-09 11:43:04 -04:00
Aaron
691629143c
adjust dependencies MINOR
2009-05-11 15:09:30 -04:00
Eliot Horowitz
2d12856284
Sharding: get rid of ShardKey::middle
2009-05-06 12:34:22 -04:00
Dwight
b2a3fc9fb8
just comments MINOR
2009-04-27 11:20:47 -04:00
Dwight
9a3a7f3c88
tiny beginnings for compound ShardKeyPattern
2009-04-23 15:40:00 -04:00
Eliot Horowitz
fac9fcc1a1
smarter about how to split a shard
...
if one side is either MIN or MAX, takes all the data and puts in one
otherwise splits on the median value
2009-03-30 17:13:55 -04:00
Aaron
7ba4140d5c
Add $size query option
2009-03-25 14:47:04 -04:00
Dwight
8431f60b10
shardkey lt gt query support
2009-03-06 13:12:00 -05:00
dwight
d9ceecba23
comments
2009-02-28 09:38:41 -05:00
Aaron
5c38fa8e4c
Add const
2009-02-27 17:32:27 -05:00
Eliot Horowitz
cedd4f0008
better debugging
2009-02-27 14:23:52 -05:00
Dwight
46f957313c
test relevantForQuery
2009-02-27 11:14:05 -05:00
Dwight
5a261ed678
new shardkey implementation (first pass)
2009-02-27 11:04:36 -05:00
Dwight
7225f8d37b
Merge branch 'master' of git@github.com:mongodb/mongo
...
Conflicts:
s/shard.cpp
s/shardkey.cpp
s/shardkey.h
2009-02-26 12:08:25 -05:00
Dwight
27b8b36c99
shardkey partial
2009-02-26 12:02:43 -05:00
Eliot Horowitz
a828c99d87
Merge branch 'master' of git@github.com:mongodb/mongo
2009-02-26 12:01:42 -05:00
Eliot Horowitz
47d36c761e
sharding schema change, some object re-org
2009-02-26 12:01:24 -05:00