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

Extension: search takes a long time to complete when there are many results #296

Open
telotortium opened this issue Apr 21, 2022 · 2 comments
Labels
backend Related to indexing/serving frontend Related to browser extension performance

Comments

@telotortium
Copy link
Contributor

It would be good to support some sort of pagination in the search. For example, if I happen to search for "neural" or something like that, it takes a long time to complete (since I have many entries in my database, currently containing around 15k visits, that pertain to neural networks). It would be good to show only the first 50 results or so, and only show the rest if you either request a new page or scroll down to the bottom (only if you want to support infinite scroll, which I don't think is that useful here).

Worse, the page locks up until everything is rendered, so you can't even refine your search easily without hard refreshing the page.

I know pagination is hard, but this would make the extension easier to use.

@karlicoss karlicoss added backend Related to indexing/serving frontend Related to browser extension performance labels Apr 21, 2022
@karlicoss
Copy link
Owner

Yep agree. I've been delaying this mainly to avoid reinventing the wheel (especially the UI), but maybe a trivial implementation wouldn't take too much effort.
I think backend is fast enough even if the pagination implemented in the simplest way possible (i.e. just request X next visits from a certain timestamp, without keeping db connection open etc). Especially if we add an index on datetime field

@telotortium
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to indexing/serving frontend Related to browser extension performance
Projects
None yet
Development

No branches or pull requests

2 participants