-
Notifications
You must be signed in to change notification settings - Fork 14
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
Spike: Create a new raw table for all ledger entry changes #309
Comments
Wonder would it be more helpful to store most raw information , example: pre and post state? And then we can derive individual tables from that? |
I think it would be the most raw information. Technically the pre would just be the previous row in the table right? |
Not sure. Let's say there happens an operations where: Ledger change entries:
What I am understanding is that It is not necessary that Record 1 and record 2 are continuous since there might be more ledger entry changes in between. I think what I am proposing is changelog table, whereas your current proposal will create historical table(each state captured across different rows). My thought is that with changelog table, it could be easier to see one level up history and not lose any information by parsing records in this table. With historical table, you would need to do joins for seeing any history |
Ah okay yeah I think we are trying to get the same thing but wording it differently.
This IS what the table would probably look like. And yes the record 1 and 2 don't have to be continuous Edit: Oh I misread your comment. I guess I'm not sure what the difference between the changelog table and historical table would be |
So my suggestion is that we store information as following:
|
Ah I see. Yeah that would work too |
Currently we separate all ledger entry changes into their own separate tables (trustlines, liquiditypools, contract_data, etc...). Does it makes sense for us to have an all combined ledger entry changes table similar to how
history_operations
combines all operation types and stores data in a details JSON.This would have some advantages that would be worth looking into
all_changes_table
The text was updated successfully, but these errors were encountered: