Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • release-1.4 protected
  • partial-merkle-tree
  • 3616-migrate-block-ledger
  • 3623-backport
  • hashed-time-locks
  • 3626-expose-simulator
  • 3640-mining-support
  • 3621-csv2yaml
  • eip712-mask
  • 3565-eip712-ethan
  • 3617-instrumentation-followup
  • database
  • database-benchmark-index
  • database-no-mutex
  • 3588-blockchain-specific-key-value-database
  • 3570-generalize-pki-types
  • 3600-fee-schedule-consistency
  • 3589-code-intelligence
  • proxy-data-entries
  • v1.4.1-snapshot
  • v1.4.1
  • v1.4.0
  • v1.4.0-alpha.1
  • v1.3.0
  • v1.3.0-rc.3
  • v1.2.13
  • v1.2.12
  • mexc-v1.2.11
  • v1.3.0-rc.2
  • v1.2.11
  • v1.2.10
  • v1.2.10-rc.8
  • v1.2.10-rc.7
  • v1.2.10-rc.6
  • v1.2.10-rc.5
  • v1.2.10-rc.4
  • v1.2.10-rc.3
  • v1.2.10-rc.2
  • mexc-v1.2.10-rc.2
40 results

database.go

  • Ethan Reesor's avatar
    84e1def6
    Walk entire database [#3301] · 84e1def6
    Ethan Reesor authored
    Closes #3301. Improves `database.Record.Walk` to make it a viable way to walk the entire database (e.g. for snapshots).
    
    - Makes index-ignoring behavior optional (default off).
    - Updates set/list/value Walk implementations to avoid walking empty/non-existent records.
    - Refactors walk helpers to avoid populating the data model (otherwise a full database walk could consume excessive memory).
    - Refactors data model population to use methods instead of function literals (required for the previous point).
    - Refactors parameterized map keys to simplify the previous two points.
    - Adds methods to get keys for parameterized attributes (otherwise they can't reasonably be walked if modified = false).
    
    Changelog: fix
    84e1def6
    History
    Walk entire database [#3301]
    Ethan Reesor authored
    Closes #3301. Improves `database.Record.Walk` to make it a viable way to walk the entire database (e.g. for snapshots).
    
    - Makes index-ignoring behavior optional (default off).
    - Updates set/list/value Walk implementations to avoid walking empty/non-existent records.
    - Refactors walk helpers to avoid populating the data model (otherwise a full database walk could consume excessive memory).
    - Refactors data model population to use methods instead of function literals (required for the previous point).
    - Refactors parameterized map keys to simplify the previous two points.
    - Adds methods to get keys for parameterized attributes (otherwise they can't reasonably be walked if modified = false).
    
    Changelog: fix
database.go 2.83 KiB