Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

README

Performance

Find slow query in Prod

see RDS Performance insight

Find slow query in Dev

enable gem 'active_record_query_trace' doc you can activate the gem by adding ENABLE_QUERY_TRACE=true when running the server

ENABLE_QUERY_TRACE=true bundle exec rails server

as an example here there is a query that takes 2.1 ms the query is

SELECT hh_package_translations xxxx

it was executed by lib/model_ext/reservations/instance_methods.rb the best practice is 1 request should executed 1 query, if more queries, means slower the processing time should be less than 10ms

Homepage

Home Page

The section title can be managed from https://hungryhub.com/admin/restaurant_sections?locale=en

SEO

you can manage the title, keyword, and description from admin setting page https://hungryhub.com/admin/settings

1st section

Based on Clevertap’s journeys

Issues:

  • it doesn’t renew the data - maybe

requests:

  • pull out all users data

2nd section

3rd Section

requests:

4th section

5th Section

Issues:

  • Sort based on the total number of restaurants
  • no arrows

Before 11 April 2023, the list is sorted based on an aggregate of total revenues, but in the management meeting at 10 April, we decided to sort it based on total restaurants for each category

6th Section

7th Section

https://hungryhub.com/api/v5/user_restaurant_histories?user_id=49824&access_token=ud48tWo47cvccELzapNEJeUpWyVzVCA4OpfjiezdOEM&client_type=web&minor_version=3

8th Section