Skip to content
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

Move transactions data to partitioned table #4

Open
galgitron opened this issue Nov 18, 2018 · 0 comments
Open

Move transactions data to partitioned table #4

galgitron opened this issue Nov 18, 2018 · 0 comments

Comments

@galgitron
Copy link

The way the ledger and transaction tables are laid out, virtually all queries are going to be very expensive because of the table scans. If you were to merge the ripple time, correct CloseTime, and the remainder of the transaction table into a "partitioned table" (and dropping the original transaction table), it would then be possible to search by date in a near-index-like efficiency, radically reducing the cost of querying when dates are involved.

Possible shortest/cheapest path to accomplish this:
https://stackoverflow.com/questions/38993877/migrating-from-non-partitioned-to-partitioned-tables/43130999#43130999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant