Open MrSon1Q opened 2 months ago
are you seeing this on both explorers? https://explorer.notallmine.net timeouts that is, can probably add it to the cache routines since top accounts wouldnt change often.. can run that every 12 hours and prob be ok.
When I try to see top accounts in explorer I get time outs frequently.
I guess that it can be fixed by some approaches:
Add a new index for the balance column in the account balance table. (The column is updated frequently, maybe that's why you haven't added it yet)
The current logic retrieves the top 1000 records from the database, and then filters them to the page value (25) only to prevent the possibility of generating queries for the top 1000+. I think that we can consider other ways to prevent the user from accessing the Nth page that generates such queries and always get the top 25 records, instead of 1000.