-
Notifications
You must be signed in to change notification settings - Fork 56
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
Timeout while pulling recent transactions #239
Comments
I checked the plan: it looks good enough. We can't speed it up just by adding indexes. I tested, what if we add the condition "please take only fresh lines, for the last week/month". I thought it could cut the sample -> we may receive the boost in speed. No, it still works too slow.
It works 20 seconds on 'nft.nearapps.near'. The problem here is the correct pagination. We can also re-think the query and ask for 3 separate things: details from |
@telezhnaya you're right. That's because we use it as a demo here to see if we have all the data we needed according to new design. And that PR is a draft one but still you could take a look how we use |
@telezhnaya @shelegdmitriy Thanks for pulling these bits together! Let's keep this issue open, but overall, we should just implement the new Activity-based Account Details page, and that will address this issue naturally. |
After the recent transactions number bump on mainnet and upgrading the hardware spec of our database instances I see that some of the account cannot get their transactions list anymore:
https://explorer.near.org/accounts/nft.nearapps.near
https://explorer.near.org/accounts/coin-op.near
I have already seen such problems before when giving more RAM to Postgres instance only made it worse. I fear there is nothing we can do there at the moment, and we will need to move away from the current "recent transactions" to "recent activity" faster as it is in fact simpler query and easier to reason about for the end-user as well:
https://near-explorer-frontend-with-indexer-pr-umte.onrender.com/accounts/nft.nearapps.near
@shelegdmitriy Can you extract the exact request from the Explorer backend, so @telezhnaya and I can profile it?
The text was updated successfully, but these errors were encountered: