Skip to content

Dj meal optimize - #123

Open
Division7 wants to merge 9 commits into
mainfrom
dj-mealOptimize
Open

Dj meal optimize#123
Division7 wants to merge 9 commits into
mainfrom
dj-mealOptimize

Conversation

@Division7

@Division7 Division7 commented May 28, 2026

Copy link
Copy Markdown
Member

Excluded from Jacoco and Pitest because we don't want to start the actual database during unit tests: see #102

Reduces total n+1 query count from ~54 for 27 new items to ~28 (GenerationType.IDENTITY does not allow batching)

Added as a repository fragment because @Query does not support iterable iterable clauses of this sort.

Projects to a MenuItemDTO with an inbuilt, calculated review score at the database rather than the frontend.

Required a couple of integration/e2e changes to run with CurrentUserService.

To avoid having to reset each database with liquibase, Dining now gets its' own custom scheme, where new migration files start with a Z_<order> to allow them to run in order

Deployed to https://dining-division7.dokku-00.cs.ucsb.edu/ -- I'd love any thoughts on the any of this

@Division7 Division7 self-assigned this May 28, 2026
@Division7
Division7 marked this pull request as ready for review May 28, 2026 23:10
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