Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A slew of performance related changes. #259

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Conversation

kigster
Copy link
Collaborator

@kigster kigster commented Aug 2, 2024

  • Adding Bullet gem, enabled in development although not sure I am seeing the output I expected.

  • Updating Makefile to migrate with data

  • Updating #set_event to log a warning when SLUG does not match the event_id parameter. Eventually we should throw an error.

  • memoizing a bunch of computations on the TicketRequest model

  • Extracting event row on the All Events page into a partial

  • Rendering the partials as a collection, with cached: true

  • Adding touch: true to inverse of TicketRequest.belongs_to(Event) so that the cache is auto-refreshed

  • Adding memcached based caching in dev/production using localhost memcached. Enable in dev by running rake cache:dev

  • Adding a test on the now memoized method #active_addon_sum_quantity_by_category to confirm its validity.

 * Adding Bullet gem, enabled in development although not sure I am seeing the output I expected.

 * Updating Makefile to migrate with data

 * Updating #set_event to log a warning when SLUG does not match the event_id parameter. Eventually we should throw an error.

 * memoizing a bunch of computations on the TicketRequest model

 * Extracting event row on the All Events page into a partial

 * Rendering the partials as a collection, with cached: true

 * Adding `touch: true` to inverse of `TicketRequest.belongs_to(Event)` so that the cache is auto-refreshed

 * Adding memcached based caching in dev/production using localhost memcached. Enable in dev by running `rake cache:dev`
 
 * Adding a test on the now memoized method `#active_addon_sum_quantity_by_category` to confirm its validity.
Copy link
Collaborator

@beingmattlevy beingmattlevy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure of the scope of the memoizations for the event addon and ticket request addon on prices. Need to validate these use cases.

app/controllers/events_controller.rb Show resolved Hide resolved
app/models/ticket_request.rb Show resolved Hide resolved
app/models/ticket_request.rb Show resolved Hide resolved
config/application.rb Show resolved Hide resolved
@beingmattlevy beingmattlevy merged commit 374cb7c into main Aug 8, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants