How to interpret explain query results? #3633
Replies: 7 comments
-
Beta Was this translation helpful? Give feedback.
-
To count number of rows to be returned from query, modify the query - remove any result columns from it and put count(*) instead. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Yes, that looks like a bug. |
Beta Was this translation helpful? Give feedback.
-
Another similar bug: The database usually fails to load the last page when the table is large (usually larger than one million). As you can see in the picture it stops somewhere strange. Refresh the table again can fix the problem. This is the "true" last page. Perhaps it is better to disable view last page until it can be displayed? |
Beta Was this translation helpful? Give feedback.
-
Weird. Is there a chance you can share this db file for sake of reproducing this bug? |
Beta Was this translation helpful? Give feedback.
-
I am sorry the data is confidential and cannot be shared. I will try to create a similar database and see if I can reproduce the same bug. Update: I tried to replicated the same structure at home but to no anvil. I have SSD at home so even making 3 million rows the results is still displayed instantly. Update2: After much experimenting with the database (original), I did not find the cause of the problem. However I have found that the database not loading last page bug can be fixed by clicking "Refresh all database schemas". Perhaps this database is just too big (17G and over) and needs to refresh from time to time. I believe this solves the second bug. The first bug, remains unsolved. |
Beta Was this translation helpful? Give feedback.
-
This is a general question. When I use explain query, the results is almost always 1000 (I think that is the limit). Is this a bad thing? Most of the results are the code of "Column". Is there a way to see total number of executions for the query?
Beta Was this translation helpful? Give feedback.
All reactions