1
0
Fork 0
arangodb/arangod/VocBase
Jan Steemann 1461d75ed4 improve collection loading time
This patch reduces collection loading time by preallocating enough space in primary index ahead of time.
When a collection is closed, the number of documents in the collection will be stored in the collection's JSON info file.
This value is used to determine the initial size for the primary index when the collection is loaded next time.

Datafile iteration has also been made slightly faster.

The above changes will have a significant benefit when the collection's datafiles are already in the OS buffer cache, and when there are no secondary indexes.
Loading datafiles from disk or building secondary indexes may be more time-consuming than the improvements reapable by this patch, but the patch shouldn't hurt anyway.
2015-02-26 16:35:51 +01:00
..
FILES.md
LOCKS.md
auth.cpp
auth.h
barrier.cpp
barrier.h
cleanup.cpp
cleanup.h
collection.cpp improve collection loading time 2015-02-26 16:35:51 +01:00
collection.h improve collection loading time 2015-02-26 16:35:51 +01:00
compactor.cpp
compactor.h
datafile.cpp improve collection loading time 2015-02-26 16:35:51 +01:00
datafile.h
document-collection.cpp improve collection loading time 2015-02-26 16:35:51 +01:00
document-collection.h improve collection loading time 2015-02-26 16:35:51 +01:00
edge-collection.cpp
edge-collection.h
general-cursor.cpp
general-cursor.h
headers.cpp
headers.h
index.cpp adjusted geo index API 2015-02-18 14:59:46 +01:00
index.h adjusted geo index API 2015-02-18 14:59:46 +01:00
key-generator.cpp
key-generator.h
primary-index.cpp improve collection loading time 2015-02-26 16:35:51 +01:00
primary-index.h improve collection loading time 2015-02-26 16:35:51 +01:00
replication-applier.cpp
replication-applier.h
replication-common.cpp
replication-common.h
replication-dump.cpp
replication-dump.h
replication-master.cpp
replication-master.h
server.cpp Another place to ignore pre-existing files. 2015-02-24 18:36:05 +01:00
server.h removed unused config options 2015-02-18 16:40:15 +01:00
transaction.cpp
transaction.h
update-policy.h
voc-shaper.cpp
voc-shaper.h
voc-types.h
vocbase-defaults.cpp
vocbase-defaults.h
vocbase.cpp improve collection loading time 2015-02-26 16:35:51 +01:00
vocbase.h