Skip to content

Optimize ElasticSearch Data Seeding by using bulk indexing instead of sequential indexing (Dashbaord Service). #66

@amrali21

Description

@amrali21

Description:

Currently, the Dashbaord service indexes seed data documents one-by-one during startup, which creates significant delay (about 10 minutes on my pc) before the service can start. this can be seen in the SeedData function here:

Fix:

This can be optimized by implementing bulk indexing. which basically means we index all the documents all at once in one go.

I've tried this solution locally and it ran x10 times faster. I know this is a simplified project is for education purposes but it would be nice if we implemented bulk indexing as it follows Elasticsearch best practices.

If you can confirm this issue, i could go ahead with a PR if needed.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions