Skip to content

Improve search indexation lifecycle #261

@jacomyal

Description

@jacomyal

The main issue lies here:

// When graph data or fields changed, we reindex it for the search
if (updatedKeys.has("fullGraph") || updatedKeys.has("edgeFields") || updatedKeys.has("nodeFields")) {
searchActions.indexAll();
}

Basically, there are way too many cases where we reindex everything rather than doing incremental indexation. Here are two examples:

  • When an edge direction changes (it makes the fullGraph reference change)
  • When we change the label of an attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssues about application performances

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions