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 '--rating-history-db' to save ratings in a DB #65

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 26, 2024

  1. Add '--rating-history-db' to save ratings in a DB

    Add `--rating-history-db` command-line option to save ratings in an sqlite3
    database.
    
    This adds a method to InMemoryStorage to save the rating history. It takes a
    `category` string for future use with rating grids, where there's a different
    InMemoryStorage for each rating category, but for now only `OneGameAtATime` has
    been updated.
    
    An aborted implementation used a new storage type OnDiskStorage instead of
    InMemoryStorage, but it was way too slow to build the table incrementally.
    Instead, this implementation writes the values in bulk at the end, using a
    generator expression to visit the rating history.
    dexonsmith committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    4b477c7 View commit details
    Browse the repository at this point in the history