Commit Graph

56 Commits

Author SHA1 Message Date
Yakov Markovitch
6311f3df9f Add missing operator!= for BSONObj and BSONElement classes 2011-10-22 12:07:32 -04:00
Dwight
ae30374ed8 Merge branch 'master' of github.com:mongodb/mongo
Conflicts:
	db/btree.cpp
	db/db.vcxproj
	dbtests/test.vcxproj
	server.h
	util/concurrency/rwlock.h
	util/concurrency/value.h
2011-10-03 13:43:34 -04:00
gregs
898e3ae4e7 return arrays if arrays given SERVER-3661 2011-09-29 12:45:09 -04:00
Dwight
48977d2abc merge 2011-08-17 16:55:13 -04:00
Dwight
9ce68d3682 new heuristic for object id btree inserts. 5% faster for best case scenario 2011-08-17 15:00:01 -04:00
Eliot Horowitz
d790a3ec6d change BSONObj::shallowEqual to binaryEqual 2011-08-16 14:19:44 -04:00
Dwight
e9170171f9 use new index version on reindex command 2011-07-05 11:39:36 -04:00
dwight
23a6515a89 make isValid() const 2011-06-28 00:37:42 -04:00
dwight
600f2eef36 SERVER-2935 fix woEqual which wasnt equalling ints and doubles 2011-06-01 09:35:42 -04:00
dwight
b99eaa3387 bson getfields method
getfirstelementfieldname method - faster than firstElement().fieldName()
bson cleaning tweaking and comments
2011-05-23 20:03:11 -04:00
Eliot Horowitz
d9e693d9e9 const on BSONObjIterator BSONObj::begin SERVER-3065 2011-05-09 11:43:16 -04:00
gregs
e4c3ecd92c each location is a unique snowflake - don't merge in returned set 2011-05-05 11:28:42 -04:00
Mathias Stearn
bf9a5c23a3 old boost fix 2011-04-03 21:00:31 -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
gregs
f45587a30a allow multiple locations to be nested in different subdocuments SERVER-838 2011-03-28 15:51:50 -04:00
Dwight
5d1f802ebe constructor should be explicit 2011-01-05 12:32:54 -05:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
dwight
08897a56a7 comment 2010-11-30 08:51:40 -05:00
dwight
eb5ac64eeb comment 2010-11-30 08:46:51 -05:00
dwight
7ca8b464eb commennt 2010-11-30 08:36:00 -05:00
dwight
47b43cea41 comment was wrong 2010-11-30 08:21:50 -05:00
dwight
e183f5d144 comments 2010-11-29 23:50:20 -05:00
Eliot Horowitz
a8115022f0 StringBuilder support for BSONObj/BSONElement 2010-11-28 03:40:02 -05:00
Dwight
89197e9518 comment 2010-11-02 11:53:37 -04:00
dwight
e6e25269c2 optimization 2010-10-27 12:39:00 -04:00
Dwight
c11fceb8f1 a small maybe optimization 2010-10-26 18:42:14 -04:00
Alberto Lerner
fd21745be1 readability 2010-10-18 14:12:58 -04:00
Eliot Horowitz
d3c3b8a903 using BSONObjMaxSize everywhere bson size comes into play
still 4mb, this is just prep for changing SERVER-431
2010-10-10 20:01:17 -04:00
Eliot Horowitz
1c0d685f9a try to prevent segfault on corrupt data SERVER-1724 2010-09-03 11:59:13 -04:00
dwight
b12c0a79fe rs SERVER-1598 getlasterrordefaults 2010-08-09 16:15:41 -04:00
Mathias Stearn
99c0d3557f More efficient toString 2010-07-27 17:18:43 -04:00
Mathias Stearn
585b3797ff use less stringstream in bson 2010-07-27 17:18:43 -04:00
Eliot Horowitz
9bc4aea8ba operator < > <= >= for BSONObj 2010-07-20 23:16:48 -04:00
Alberto Lerner
f51a4d0669 SERVER-1270 Hook StringData to BufBuilder 2010-07-19 09:56:24 -04:00
Alberto Lerner
6f728ae260 Eliminate BSONObj->string implicit conversion 2010-07-18 15:15:31 -04:00
dwight
c3b07d52ce git???? 2010-07-18 15:04:01 -04:00
Eliot Horowitz
94af9c42e4 added a StringDataNoSize struct 2010-07-18 11:21:48 -04:00
Eliot Horowitz
867b9c16f1 use StringData in place rather than hacking 2010-07-18 11:14:32 -04:00
Alberto Lerner
daf8c0fbd0 Revert "SERVER-1270 Prep for hooking StringData"
This reverts commit b7c9a9fc57.
2010-07-17 16:07:38 -04:00
Alberto Lerner
b7c9a9fc57 SERVER-1270 Prep for hooking StringData 2010-07-17 14:33:17 -04:00
Mathias Stearn
4407f18829 extractFieldsDotted was unused and broken (done() vs obj()). use extractFields instead. 2010-07-14 14:34:44 -04:00
Mathias Stearn
1dcdf8305b full option to BSONObj::toString. fix Chunk::genId. SERVER-1370 2010-07-07 12:18:57 -04:00
Mathias Stearn
13c6875815 temporarily Revert "git rid of "operator string""
This reverts commit 95fa51a1df.
2010-07-07 01:22:33 -04:00
Mathias Stearn
95fa51a1df git rid of "operator string" 2010-07-07 00:30:17 -04:00
Eliot Horowitz
a3c7ba0c77 Merge commit '1094c42' 2010-06-25 15:58:54 -04:00
Eliot Horowitz
9959f32daa open to BSONObj::woCompare to treak compare key as dotted 2010-06-25 15:43:41 -04:00
Eliot Horowitz
a5b8c2b7cf string verstion of getFieldDotted 2010-06-24 10:49:49 -04:00
Erick Tryzelaar
e657acd9dc Fix a typo. 2010-06-22 16:26:56 +08:00
Dwight Merriman
6efbf9af37 bson tweaking 2010-05-23 18:35:08 -04:00
Eliot Horowitz
0afdef1676 cruft/pack cleaning 2010-05-17 16:50:47 -04:00