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:
|
public async Task SeedData() |
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.