DefraDB is a Peer-to-Peer Edge Database. It's the core data storage system for the Source Network Ecosystem, built with IPLD, LibP2P, CRDTs, and Semantic open web properties.
401
stars
40
forks
source link
Creating document from primary side of one-one very very slow #2968
Creating a document from the primary side of a one-one is very very slow. When running the below queries, the Player collection is empty, and Contact has 37384 documents.
Creating a document from the primary side of a one-one is very very slow. When running the below queries, the
Player
collection is empty, andContact
has 37384 documents.Over the http client the below takes about
8ms
:However, the below takes about
500ms
, and gets slower the more Players are created:Schema (trimmed):
Adding an index to
contact_id
does not appear to improve things.Flagged as a bug, as this is far slower than is reasonable, suggesting there is a bug in the code somewhere.