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

Add methods to sbds to replace account history in steemd #87

Open
3 of 7 tasks
Tracked by #100
jredbeard opened this issue Dec 1, 2017 · 5 comments
Open
3 of 7 tasks
Tracked by #100

Add methods to sbds to replace account history in steemd #87

jredbeard opened this issue Dec 1, 2017 · 5 comments

Comments

@jredbeard
Copy link

jredbeard commented Dec 1, 2017

Account History Implementation Requirements

Data Storage

  • index all operations
  • link all account name references (all of these are done except fields of typeflat_set< account_name_type>)
  • determine best way to index information (View, Materialized View, Table)

get_account_history Implementation

steemd source

  • get_account_history sql query #109 get_account_history sql query
  • get_account_history jrpc method handling
    • defined in sbds.server.methods
    • signature: get_account_history( account:str , from:int, limit:int )

get_state Implementation

steemd source
roadscapes excellent explanation

@sneak
Copy link
Contributor

sneak commented Dec 15, 2017

at least one call used for the account history in the wallet in condenser, per @roadscape

get_state("@username/transfers")

internally it calls get_account_history and filters based on relevant transactions

@sneak
Copy link
Contributor

sneak commented Dec 15, 2017

Third parties who access our API use the vote history in AH, which is huge - we don't need it for condenser/steemit.com. We can vastly reduce the usage of the AH's plugin state file size simply by filtering out vote operations.

@goldibex
Copy link

in master at least, the only places where the account_history plugin is invoked are in database_api:

@sneak
Copy link
Contributor

sneak commented Jan 15, 2018

#89 is part of this effort

@john-g-g
Copy link
Contributor

john-g-g commented Mar 6, 2018

Good work done by @roadscape here steemit/condenser#2244

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

No branches or pull requests

5 participants