Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Use :exsp random engine for better performance - #6778

Merged
NateBrady23 merged 1 commit into
TechEmpower:masterfrom
hauleth:phoenix/better-random-engine
Sep 13, 2021
Merged

NateBrady23 merged 1 commit into
TechEmpower:masterfrom
hauleth:phoenix/better-random-engine

Conversation

@hauleth

@hauleth hauleth commented Aug 21, 2021

Copy link
Copy Markdown
Contributor

Additionally it changes the update into bulk update via insert_all and :on_conflict option.

This also changes the individual generation of numbers into Enum.take_random to make all selected IDs unique to help with insert_all which do not allow for edits the same rows twice in one query.

Additionally it changes the update into bulk update via `insert_all` and
`:on_conflict` option.

This also changes the individual generation of numbers into
`Enum.take_random` to make all selected IDs unique to help with
`insert_all` which do not allow for edits the same rows twice in one
query.
@hauleth
hauleth force-pushed the phoenix/better-random-engine branch from f557d88 to 8cb70f8 Compare August 21, 2021 20:56
@NateBrady23
NateBrady23 merged commit 9a41609 into TechEmpower:master Sep 13, 2021
@hauleth
hauleth deleted the phoenix/better-random-engine branch September 13, 2021 15:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants