impress/app/models
Emi Matchu 193b1fa5e3 Improve performance for occupies:X searches
I noticed in the app that these queries were slowwww! I was able to
track it down to a bad query plan, as we explain in the comment.

I searched online for "mysql query performance filter on one join table
sort by another", and was surprised to find this answer suggest a
subquery, which I've often been told to expect to be slower compared to
joins? But it certainly worked in this case!

https://stackoverflow.com/questions/35679693/mysql-optimize-join-with-filter-and-order-on-different-tables
2024-06-03 11:45:51 -07:00
..
fundraising
item Use fits:nostalgic-faerie-draik filter format when we can 2024-02-27 15:51:27 -08:00
alt_style.rb Assume new alt styles are "Nostalgic" until the end of 2024 2024-05-29 18:46:17 -07:00
application_record.rb
auth_record.rb
auth_user.rb Use Neopets username as base name for new NeoPass accounts, if possible 2024-04-09 07:48:13 -07:00
closet_hanger.rb Fix MissingAttributeError in ClosetHanger#merge_quantities 2024-02-28 13:30:55 -08:00
closet_list.rb Disallow email addresses in closet list descriptions 2024-04-16 17:04:31 -07:00
closet_visibility.rb
color.rb Use a pet face when there's no paint brush, in Item Getting Guide 2024-05-22 17:53:52 -07:00
contribution.rb
item.rb Improve performance for occupies:X searches 2024-06-03 11:45:51 -07:00
item_outfit_relationship.rb
nc_mall_record.rb Add more info to NC Mall section of Item Getting Guide 2024-05-14 16:04:40 -07:00
neopets_connection.rb
neopets_page.rb
outfit.rb
parent_swf_asset_relationship.rb
pet.rb To "fetch" the image hash of an image hash name, just take off the @! 2024-04-16 15:57:39 -07:00
pet_state.rb
pet_type.rb Refactor pet image hash loading into the Pet model, not PetType 2024-04-06 02:25:22 -07:00
species.rb
swf_asset.rb Remove hundreds of unnecessary queries from /alt-styles page! 2024-05-29 18:52:36 -07:00
user.rb Add shadowban mechanism for closet lists 2024-04-20 20:57:15 -07:00
zone.rb