Query modules in C++ are being congested by the unique lock #1942
Labels
bug
bug
Effort - Medium
Effort - Medium
Frequency - Daily
Frequency - Daily
Priority - Now
Priority - Now
Reach - Most
Reach - Most
Severity - S1
Severity - S1
Memgraph version
v2.16.0
Environment
Ubuntu 22.04
Describe the bug
It seems that the memory dispatch guard is taking around 30% time on holding the unique lock while registering and unregistering the thread. Furthermore, the Register and Unregister methods are both called as many times as the query module is run (so at least once per query, but can be more)
Query module for testing
To Reproduce
Steps to reproduce the behavior:
foreach (i in range(1, 10000000) | CREATE (:Node {id1: toString(i), id2: toString(i)}));
match (n) where equality.is_equal(n.id1, n.id2) = true return count(*);
Expected behavior
Queries shouldn't be that slow
Flamegraph
The text was updated successfully, but these errors were encountered: