Skip to content

How to use ValueObservation.tracking properly for paginated query with offset and limit? #1681

Answered by groue
hyouuu asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @hyouuu,

How to use ValueObservation.tracking properly for paginated query with offset and limit?

You can't use ValueObservation.tracking improperly. 😉


The doc does not indeed provide a self-contained description of "what is observed, exactly?".

There is a beginning of a description in ValueObservation Performance:

ValueObservation is triggered by database transactions that may modify the tracked value.

Precisely speaking, ValueObservation tracks changes in a DatabaseRegion, not changes in values.

For example, if you track the maximum score of players, all transactions that impact the score column of the player database table (any update, insertion, or deletion) trigger the obse…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by hyouuu
Comment options

You must be logged in to vote
5 replies
@groue
Comment options

groue Dec 2, 2024
Maintainer

@hyouuu
Comment options

@groue
Comment options

groue Dec 2, 2024
Maintainer

@hyouuu
Comment options

@groue
Comment options

groue Dec 2, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants