near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

Consider global migration from Postgres #189

Open telezhnaya opened 2 years ago

telezhnaya commented 2 years ago

We've already discussed this topic several times, it's better to collect all thoughts/requirements/ideas in one place so that we can make the decision faster when we decide to move on with the migration.

  1. Why do we think about the migration? 1. The speed of SELECT queries degraded dramatically, and we have the feeling that it couldn't be improved in the current setup 2. I'm afraid that in one day we will have issues with the speed of INSERTs (it's not the bottleneck still; if we will meet this problem, the hotfix is to add the partitions)

  2. The results of the discussions