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

Reduce update queries if pk is uuid #147

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Aug 16, 2023

  1. Reduce update queries if pk is uuid

    When the column of bitemporal_id_key is uuid, the uuid can be generated and specified before insertion into the DB.
    In this case, there is no need to update bitemporal_id_key in after_create, so the update query can be reduced by one query.
    
    Note that for types other than uuid, it is not possible to specify the next pk before inserting it into the DB, so the current logic is maintained.
    alpaca-tc committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    d9d4f16 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. Add test for swapped_id

    alpaca-tc committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    80fd618 View commit details
    Browse the repository at this point in the history
  2. skip if save is failed

    alpaca-tc committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    7ff7dd6 View commit details
    Browse the repository at this point in the history