Skip to content

fix paging for rating spec getAll endpoint#1578

Merged
adamkorynta merged 6 commits intodevelopfrom
bugfix/rating_spec_getall_pagination
Feb 12, 2026
Merged

fix paging for rating spec getAll endpoint#1578
adamkorynta merged 6 commits intodevelopfrom
bugfix/rating_spec_getall_pagination

Conversation

@adamkorynta
Copy link
Collaborator

@adamkorynta adamkorynta commented Feb 11, 2026

  • the total size of rating specs was not queries, so next-page was never generated
  • optimize the query by paging and filtering just on the rating specs, not the rating specs + effective dates
  • optimize caseInsensitiveLikeRegex condition for "*" and ".*" by setting it to noCondition(). This is especially helpful when columns are concatenations like TSIDs, Rating Ids, etc

- the total size of rating specs was not queries, so next-page was never generated
- optimize the query by paging and filtering just on the rating specs, not the rating specs + effective dates
- optimize regex condition for "*" by setting it to noCondition(). This is especially helpful when columns are concatenations like TSIDs, Rating Ids, etc
@rma-rripken
Copy link
Collaborator

  • isn' t really a regex. Oracle treats it as .*

@adamkorynta
Copy link
Collaborator Author

do you think I should capture both "*" and ".*" as no condition?

@rma-rripken
Copy link
Collaborator

things that use * might work but imo they are broken and the default should be .*

@rma-rripken
Copy link
Collaborator

Maybe an integration test that inserts a bunch and then pages the results and verifies they are all there? That is really what should have happened before you found this error.

rma-rripken
rma-rripken previously approved these changes Feb 11, 2026
@adamkorynta adamkorynta merged commit b3307b1 into develop Feb 12, 2026
7 of 8 checks passed
@adamkorynta adamkorynta deleted the bugfix/rating_spec_getall_pagination branch February 12, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants