Sort Changes by the specified field other than the primary key
- Vorherrschende Sprache
- Java
- Sterne
- 130
- Forks
- 21
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
According to documentation, changes sorted by primary key and if there are no primary key by the values of the row (for a modification).
My table has a primary key, but it doesn't fit because it has a type UUID. So the changes is sorted randomly.
Is there any function to set sorting on any other field? If not, can you add?
I tried like below code, it doesn't work:
`Table(dataSource, "table_name", arrayOf(Order.asc("created")))...`
Beitragsleitfaden
Rechercherichtung
Start from the Table(dataSource, "table_name", arrayOf(Order.asc("created"))) entry point and compare it with the documented primary-key sorting behavior. Trace how the specified field is handled for modifications, then verify that changes are ordered by the requested field and add coverage where the repository's existing tests for this API reside.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- database
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100