memgraph/src
florijan 5066b1b80d BuildIndex now iterates over less vertices
Summary:
Measured improvements in a test scenario with 4 labels, 1M vertices for each label:
Old code: ~2.5 seconds per index
New code: ~1.5 seconds per index

When building an index for a non-existing label the updated code is done immediately. The old code depends on the number of vertices in the database.

The new code *could* be slower when building an index for a label that has a lot of vertices, and the index is not garbage collected recently and contains a lot of junk. This can be avoided by a simple check in the `BuildIndex` function (if label_index cardinality > total cardinality), if you like.

Reviewers: buda, mislav.bradac, teon.banek

Reviewed By: mislav.bradac

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D767
2017-09-08 13:05:09 +02:00
..
communication Fixed bolt chunked encoder buffer for big data. 2017-09-06 15:36:24 +02:00
data_structures Rename Executioner to Executor 2017-09-07 15:13:17 +02:00
database BuildIndex now iterates over less vertices 2017-09-08 13:05:09 +02:00
durability First version of bolt cpp client. 2017-08-24 17:44:44 +02:00
io/network Stress tests now spawn only one memgraph. 2017-08-18 14:48:54 +02:00
mvcc Make some members private in CommitLog 2017-07-12 14:58:34 +02:00
query Generate indexed ScanAll to make Expand existing 2017-09-08 09:50:18 +02:00
storage Property storage now supports Map 2017-08-24 10:29:49 +02:00
threading Migrate timer to use walltime, instead of cputime 2017-07-17 13:42:44 +02:00
transactions Fix bug in lock store 2017-07-29 17:48:34 +02:00
traversal Move unused datastructures to poc 2017-07-10 12:03:11 +02:00
utils Rename Executioner to Executor 2017-09-07 15:13:17 +02:00
copy_hardcoded_queries.cpp Migrate command line args to gflgs in tests 2017-07-06 13:54:12 +02:00
memgraph_bolt.cpp Removed unused template parameter from network stack. 2017-08-04 11:12:08 +02:00