1
0
Fork 0
forked from OpenNeo/impress
impress/app/models
Matchu eab14e31fd waaay speed up Pet#translate_items
A few key changes:
  * Don't reload the whole pet 8 times!! Sooo many bad things
    happen, including redundant lookups of everything else and
    too many item saves and reindexes. Instead, fetch the item
    data, apply it to the items, and then save the items (once
    each!)
  * Updated my branch of globalize3 to be even better at avoiding
    redundant queries when saving. Woo.
  * Last realization: wrapping all the item saves in a single
    transaction works wonders. COMMIT seems to have high overhead,
    so doing only one took it from 50ms * 10 or whatever to 60ms.
    Good stuff.
2013-01-28 15:18:11 -06:00
..
item temporarily disable user-filters in item search 2013-01-27 01:45:18 -06:00
asset_image_conversion_request.rb timeout on background jobs 2012-11-04 12:01:03 -06:00
closet_hanger.rb oops, deal with missing item fields better 2013-01-28 03:01:25 -06:00
closet_list.rb items petpage export 2011-07-31 02:52:19 -04:00
closet_page.rb i18n for neopets_pages#new 2013-01-24 18:23:19 -06:00
closet_visibility.rb i18n for closet_hangers#index, closet_lists#edit, closet_lists#new, and maybe some more closet-related things - this was a biggie 2013-01-24 18:23:19 -06:00
color.rb zone, species, color alphabetical by the current locale 2013-01-27 00:25:52 -06:00
contribution.rb remove N+1 queries in contributions#index 2013-01-25 15:23:48 -06:00
contribution_observer.rb i18n for items#show (including javascripts/items/show.js) 2013-01-24 18:23:19 -06:00
fragment_expiration.rb i18n for outfits#new (and layouts#application), including caching 2013-01-24 18:23:18 -06:00
fragment_localization.rb i18n for outfits#new (and layouts#application), including caching 2013-01-24 18:23:18 -06:00
item.rb oops, deal with missing item fields better 2013-01-28 03:01:25 -06:00
item_observer.rb i18n for items#show (including javascripts/items/show.js) 2013-01-24 18:23:19 -06:00
item_outfit_relationship.rb lovely interface for saving outfits. still no reading them yet 2010-11-10 16:59:54 -05:00
neopets_user.rb bug fix: pet importer no longer chokes when two pets wear the same item 2012-10-01 13:22:17 -05:00
outfit.rb move zones to database 2013-01-24 18:26:00 -06:00
outfit_image_update.rb timeout on background jobs 2012-11-04 12:01:03 -06:00
outfit_image_uploader.rb use openneo-uploads bucket 2012-07-31 11:42:27 -04:00
parent_swf_asset_relationship.rb give SWFs real, unique ID numbers 2012-01-12 17:17:59 -06:00
pet.rb waaay speed up Pet#translate_items 2013-01-28 15:18:11 -06:00
pet_attribute.rb capitalize each word of a species/color name (for Swamp Gas) 2011-07-12 18:22:16 -04:00
pet_state.rb cut down on pets#load zone queries 2013-01-28 02:19:37 -06:00
pet_type.rb move zones to database 2013-01-24 18:26:00 -06:00
pretty_param.rb parameterize user params like items, plus a cleaner parameterization scheme 2011-07-26 18:49:52 -04:00
roulette.rb species check was in the wrong place. fixed 2011-01-27 17:50:08 -05:00
safety_deposit_page.rb i18n for neopets_pages#new 2013-01-24 18:23:19 -06:00
species.rb zone, species, color alphabetical by the current locale 2013-01-27 00:25:52 -06:00
static_resource.rb attempt to fix new species_support_ids format. sigh. 2013-01-23 00:25:09 -06:00
swf_asset.rb move zones to database 2013-01-24 18:26:00 -06:00
user.rb filter lists on petpage export 2012-04-08 15:59:51 -05:00
user_sweeper.rb save user even if points do not change. oops 2011-03-01 15:32:26 -05:00
zone.rb zone, species, color alphabetical by the current locale 2013-01-27 00:25:52 -06:00