Replies: 1 comment 4 replies
-
|
This has come up a few times. It adds extra complication trying to figure out when a record is going in and out of a scope we care about. I'm happy to look at a PR that implements this but it'd have to be tidy and generally applicable. Is it just a case of pre-optimising something that isn't causing that much extra load anyway? :) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In particular, for soft deleted records using something like
discard, where I really only want positioning to manage the records that have beenkept... over time, positioning records that have been soft deleted can cause a lot of unnecessary DB updates.It can be done while healing with
Model.kept.heal_position_column!, or addingdiscarded_atto the scope, but then its managing a deleted and a non-deleted list, which is a bit weird.Do we want to allow applying a scope like this? It would be left to the user to hook into the proper places (like
discardorundiscard) to reposition the items correctly.Beta Was this translation helpful? Give feedback.
All reactions