Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Refactor _get_e2e_device_keys_txn to split large queries #13956

Merged
merged 4 commits into from
Oct 3, 2022

Commits on Sep 29, 2022

  1. Add make_tuple_in_list_sql_clause helper function

    Signed-off-by: Sean Quah <[email protected]>
    Sean Quah committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    45749ba View commit details
    Browse the repository at this point in the history
  2. Fix incorrect type hint for _get_e2e_device_keys_txn

    `device_id`s are allowed to be `None`, to mean all devices of a given
    user.
    
    Signed-off-by: Sean Quah <[email protected]>
    Sean Quah committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    b8857ff View commit details
    Browse the repository at this point in the history
  3. Refactor _get_e2e_device_keys_txn to split large queries

    Instead of running a single large query, run a single query for
    user-only lookups and additional queries for batches of user device
    lookups.
    
    Resolves #13580.
    
    Signed-off-by: Sean Quah <[email protected]>
    Sean Quah committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    9c93f30 View commit details
    Browse the repository at this point in the history
  4. Add newsfile

    Sean Quah committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    3b609c7 View commit details
    Browse the repository at this point in the history