Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • H haf
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hive
  • haf
  • Issues
  • #34

Closed
Open
Created Jan 22, 2022 by Dan Notestein@danOwner

Create sql_serializer options for filtering data that gets serialized to allow for creation of smaller HAF databases

A fully flexible HAF server should keep all the blockchain data so that it can run any potential HAF application. But in many instances, a HAF server operator will only want run to a few specific HAF applications, in which case they should be able to configure the sql_serializer feeding their database to only write the data they need.

The first such example case we should concentrate on is the implementation of filtering that supports running a hafah app that only records account history for specific accounts. This will be a common usecase for exchanges, for example.

In this case, we will want to filter at least the largest tables created by sql_serializer (operations, account_operations, and transactions) which completely dominate the size of the base storage of a HAF database. We can probably stick to the same filtering specification used by the account history plugin: a list of account ranges, where a range is a lexicographic-specified range of strings.

Edited Jan 22, 2022 by Dan Notestein
Assignee
Assign to
Time tracking