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
Hasura Console Data Screen has Very Long Load Time with Large Amounts of DB Tables #9167
Comments
@mtate713 can you share any more details about your database? Especially interested in not only the size of the schema, but also whether your database has any data and if so how much. We've seen similar issues in the past with very large databases. |
Yes, I was experimenting with Hasura on a test Postgres database with a few (<5) schemas, but about 100+ tables in each schema. Each of the tables has about 1 year of daily archive data. The Data screen was able to load the initial database and schemas fast. But once I open one of the schemas it takes a very long time to load in the tables. Also when the tables do load in, if I click on one table the data and relationships in the table loads in fast. It seems like just loading in the list of schema tables is hanging up the Data screen. Is there any way that you can update that process in the Hasura Console? |
@mtate713 Absolutely. We'd appreciate some help in identifying the culprit query, if that's ok with you. If you do not have a hasura cloud account, you can also email support [at] hasura [dot] io |
Hi @mtate713 , we are looking into supporting these kind of bulk (or long running) tasks in Hasura CLI as an extension, which can be easier to manage and track due to command line interface. Will that be something that can work for your usecase? We can share some demo work for reference. |
Yes, if you can share an example of this extension in a docker instance of Hasura CLI, that would be very helpful. One recommendation I suggest for improving the Hasura Console is to have a way to store the untracked tables in the Metadata. It seems like the issue is because the Console is constantly pulling the list of untracked tables from the Database every time you do anything in the Data screen. I really love Hasura and what you all are doing with it! Thank you for reaching out! |
@mtate713 Thanks for offering your help. The following is a The
|
Hi @mtate713, we've received your ticket regarding this issue, and shared a meeting link so we can look into this. Can you confirm you've received our replies on the ticket? |
@mtate713 I'd also like to know if the schemas have a lot of columns between all their tables? SELECT COUNT(*)
FROM information_schema.columns where table_schema = 'public'; Change the schema name as required. |
Is your proposal related to a problem?
While using a self-hosted Docker instance of Hasura, the Data screen in the Hasura Console seems to take 20 minutes to load in the tables of databases
with 100+ tables. It sometimes hangs indefinitely and never loads any tables, tracked or untracked. The GraphQL engine is still able to process queries from the large databases, but it has become difficult to track new tables or add new table relationships.
Describe the solution you'd like
An update to the Hasura Console frontend so that it can handle large amounts of DB tables and is scalable to demand.
Describe alternatives you've considered
I have tried manually updating Hasura Metadata JSON to track new tables and relationships, but I rather use the Hasura Console to do these tasks. Especially when I am introducing this product to less technical users.
Thank you!
The text was updated successfully, but these errors were encountered: