You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CASE statements (mostly used in ORDER BY in our case) make queries more difficult to migrate. When a query uses DISTINCT and and CASE statement we are forced to use GROUP BY.
To prevent using GROUP BY and aggregate functions we want to remove all CASE statements in our queries and simplify our sort approach with other solutions.
ToDo
Add generated sort_name column to person
Adjust order_by_name method in person model to use new sort_name column
Add new table event_role_types
Seed Event::role_types on app start
Check for changes in Event model to prevent seeding role_types every app start
Replace other CASE statements
The text was updated successfully, but these errors were encountered:
CASE statements (mostly used in ORDER BY in our case) make queries more difficult to migrate. When a query uses DISTINCT and and CASE statement we are forced to use GROUP BY.
To prevent using GROUP BY and aggregate functions we want to remove all CASE statements in our queries and simplify our sort approach with other solutions.
ToDo
The text was updated successfully, but these errors were encountered: