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:
- get from this API https://hungryhub.com/api/v5/homes/section_9.json
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

8th Section
