1
0
Fork 0
Commit Graph

6230 Commits

Author SHA1 Message Date
Michael Hackstein 2212be29c0 Merge branch 'devel' of github.com:arangodb/arangodb into devel 2015-08-26 17:10:14 +02:00
Michael Hackstein 7257bf0b9d Skiplist and HashIndex will now print their figures if requested 2015-08-26 17:10:02 +02:00
Max Neunhoeffer c0f1b72bab Add "sensible" madvise calls.
Essentially the strategy is: A newly created and a newly opened file
is advised to be "SEQUENTIAL ACCESS", because we will either write to
it or scan it sequentially. As soon as it is sealed, we switch the
advice to "RANDOM ACCESS", because this should be the normal pattern and
aggressive read-aheads tend to be bad. The collector and the compactor
switch a sealed file back to "SEQUENTIAL ACCESS" just before they scan
it and back to "RANDOM ACCESS", when they are done.

Furthermore, all data files in a collection are advised with "WILLNEED"
just before the collection is scanned during loading.

Finally, the actual hash table of AssocMulti is advised to be random
access, although this is an anonymous map given to us by malloc and not
a memory mapped file.
2015-08-26 16:45:26 +02:00
Jan Steemann d0bd94f4c5 fixed Json 2015-08-26 16:23:26 +02:00
Jan Steemann a3550e331e fixed makefiles 2015-08-26 16:17:45 +02:00
Jan Steemann 61243ebb7b Merge branch 'devel' of https://github.com/arangodb/arangodb into array_indexing
Conflicts:
	arangod/HashIndex/hash-array-multi.cpp
	arangod/Indexes/HashIndex.cpp
2015-08-26 15:01:29 +02:00
Jan Steemann 7329414456 fixed index size calculations 2015-08-26 14:55:58 +02:00
Michael Hackstein 4a3b8007bd Fixed memory calculation of HashIndexMulti. And added index information for it 2015-08-26 14:38:23 +02:00
Frank Celler 2d45445a10 added additional-threads option 2015-08-26 13:13:47 +02:00
Jan Steemann e73f546be2 added assertion 2015-08-26 12:51:31 +02:00
Jan Steemann 5bf32095a1 print abortion 2015-08-26 12:02:43 +02:00
Michael Hackstein 4effa2291e Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-26 10:41:27 +02:00
Michael Hackstein 6ac7f83e3d Fixed rollback and added index information to log.performance 2015-08-26 10:34:42 +02:00
Jan Steemann b0c12a9d57 added indexFigures 2015-08-26 10:21:36 +02:00
Jan Steemann f4c542795c getIndexes(true) 2015-08-26 09:48:48 +02:00
Michael Hackstein c308065eec Removed obsolete hash index implementation 2015-08-26 09:46:49 +02:00
Jan Steemann 9374a25822 removed unused error code 2015-08-25 19:55:48 +02:00
Jan Steemann 242c706844 use unique_ptr 2015-08-25 19:22:57 +02:00
Jan Steemann 0d0e652bdc fixed VS compile warnings 2015-08-25 18:02:00 +02:00
Jan Steemann 75ad81401b slightly improved logging 2015-08-25 17:35:54 +02:00
Jan Steemann a440d65ee2 fix limits 2015-08-25 16:57:00 +02:00
Michael Hackstein 40c1361244 Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing 2015-08-25 16:40:31 +02:00
Max Neunhoeffer 93caabb397 Fix fix. 2015-08-25 16:17:02 +02:00
Max Neunhoeffer 66498a56c3 Fix hash function for AssocMulti usage in hash-multi-index. 2015-08-25 16:13:43 +02:00
Jan Steemann 1911d4086d forgot to commit 2015-08-25 16:08:46 +02:00
Jan Steemann 7540059f36 uint32_t => uint64_t 2015-08-25 15:08:09 +02:00
Jan Steemann 52af8c5781 added comments 2015-08-25 13:16:07 +02:00
Max Neunhoeffer 7957df9215 Merge branch 'array_indexing' of ssh://github.com/ArangoDB/ArangoDB into array_indexing 2015-08-25 13:04:48 +02:00
Jan Steemann 1af238a6d5 added tests for requireFromIncluded 2015-08-25 12:50:58 +02:00
Max Neunhoeffer 203e9a5195 Make hashcache in AssocMulti switchable-off. Does not work yet. 2015-08-25 12:46:47 +02:00
Michael Hackstein 57c6103458 Revert "The AssocUnique index now requires only an element to insert it. They key is derived"
This reverts commit ea70a948e254716905a7619e72b41fbef4f66695.
2015-08-25 09:40:29 +02:00
Jan Steemann 03fa10dad8 less initial syncing when resuming replication 2015-08-24 17:39:11 +02:00
Michael Hackstein 2d6af6e872 The AssocUnique index now requires only an element to insert it. They key is derived 2015-08-24 17:14:39 +02:00
Michael Hackstein ba8264eada AssocUnique is now a templated index. Foundation to move primary index to use it 2015-08-24 16:41:16 +02:00
Michael Hackstein 855cc0fc96 Removed all functionality from hash-array. To be removed 2015-08-24 14:55:55 +02:00
Michael Hackstein f9647962d7 Moved HashIndex/hash-array.h to Basics/AssocUnique.h 2015-08-24 14:17:49 +02:00
Michael Hackstein 80e1f6decc Started templatefying hash-array to AssocUnique 2015-08-24 14:16:45 +02:00
Michael Hackstein 2dd0f7cf7f Continued @neunhoef 's on simplification of hash-index. The index itself will never free anything, calling class is responsible for freeing now. 2015-08-24 13:14:35 +02:00
Jan Steemann 37da76546c re-introduced tracking of replication "clients" 2015-08-24 12:02:57 +02:00
Michael Hackstein d43c515b56 Fixed a bug in hash index buckets. When resizing the table was not nulled correctly. 2015-08-24 11:22:53 +02:00
Jan Steemann b08713d768 added tests and documentation 2015-08-24 11:05:26 +02:00
Jan Steemann 893f9592f8 Merge branch 'devel' of https://github.com/arangodb/arangodb into replication 2015-08-24 09:58:04 +02:00
Michael Hackstein ac453f918e Merge branch 'array_indexing' of github.com:arangodb/arangodb into array_indexing 2015-08-23 18:24:48 +02:00
Michael Hackstein 44b8cc67ff Fixed some memleaks 2015-08-23 18:24:41 +02:00
Jan Steemann 0defef6e0b do not fetch vocbase in loop 2015-08-22 23:24:36 +02:00
Jan Steemann 387e3e9cd4 make removeByExample, replaceByExample and updateByExample use AQL internally 2015-08-22 23:22:24 +02:00
Jan Steemann b58ecfe206 added firstTick() 2015-08-21 17:11:40 +02:00
Jan Steemann 9e08b1ebc5 add tickRanges() function 2015-08-21 17:00:32 +02:00
Max Neunhoeffer 673956d484 Activate number of buckets. 2015-08-21 16:28:45 +02:00
Michael Hackstein 85c5885c76 Merge branch 'array_indexing' of github.com:arangodb/arangodb into array_indexing 2015-08-21 16:21:38 +02:00