Skip to content

Conversation

fractaledmind
Copy link
Contributor

This PR is work-in-progress while I figure out test cases for each of the counters. But I thought I would get the benefits of the amazingly thorough CI as I build, so I'm opening this draft PR early with my first method: cache_misses.

This PR will add 13 instance methods to the Statement class:

  • lookaside_used
  • cache_used
  • schema_used
  • stmt_used
  • lookaside_hits
  • lookaside_miss_size
  • lookaside_miss_full
  • cache_hits
  • cache_misses
  • cache_writes
  • deferred_fks
  • cache_used_shared
  • cache_spills

Each method corresponds to one of the counters available to the db_status interface.

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

Successfully merging this pull request may close these issues.

1 participant