Skip to content

Vector: 2 edges are created for proximity, while only one is needed #1163

@lvca

Description

@lvca

After loading the GloVe test database in Studio I noticed this:

image

Each Word vertices is connected with 2 Proximity edges. This is not necessary, because in ArcadeDB edges are bidirectional.

This means we could:

  1. add a check when I create a Proximity edge: if the edge exists from the other side, skip it and
  2. query always both directions

By reducing to half the number of edges means much faster insertion, query and less RAM used.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions