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

Virtualmin database GUI: "There are too many tables to display": add a link to where we can increase the number of tables to display #1003

Open
marclaporte opened this issue Jan 31, 2025 · 4 comments

Comments

@marclaporte
Copy link
Contributor

When a database has too many tables, it's easy to solve: increase the maximum to display. However, most site admins will have trouble finding the setting.
Image

@jcameron: @iliajie explained to me that this is not simple to address with the current design so just adding here as a longer term issue.

Thanks!

@iliajie
Copy link
Collaborator

iliajie commented Jan 31, 2025

Thanks Marc!

I believe we need to switch to using the new table pagination API that I added some time ago. We are currently using it in "Users and Groups" module only.

@jcameron
Copy link
Collaborator

The reason for this limit is that for each table or DB we display, Webmin has to fetch the number of tables and rows respectively to generate that table. And this can get pretty slow, even if we use a paginated display.

@iliajie
Copy link
Collaborator

iliajie commented Feb 2, 2025

And this can get pretty slow, even if we use a paginated display.

Counting tables/indexes is almost instantaneous, but counting rows and fields can be slow. For paginated tables, could we count only the rows and fields on the current page while using the total number of tables/indexes to build the pagination itself?

@jcameron
Copy link
Collaborator

jcameron commented Feb 2, 2025

In theory yes we could build this ... take a shot if you like!

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

3 participants