Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too slow for indexing a large size of a record. #3

Closed
ghost opened this issue Oct 26, 2023 · 1 comment
Closed

Too slow for indexing a large size of a record. #3

ghost opened this issue Oct 26, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 26, 2023

Looking on to the code https://github.com/tensojka/ipfsearch-index/blob/master/ipfsearch-indexlib.ts#L109C61-L109C61, it is not well optimized for indexing large records since the code is more like of o(n^n) instead of o(n) operation.

Example indexing 1 million records from torrents https://github.com/urbanguacamole/torrent-paradise/blob/master/index-generator/main.ts

@ghost
Copy link
Author

ghost commented Oct 26, 2023

It would be great to have addToIndex function as async method

@ghost ghost closed this as completed Feb 26, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants