impress-2020/scripts
Matchu 0e8e50b054 Simpler, faster modeling query
I narrowed down the problem to the fact that we were joining in pet types against assets, and *then* running GROUP and DISTINCT and everything. Assets x compatible species/color pairs is a LOT of rows!

Here, we instead get all the relevant body IDs first, and *then* match them against pet types—which we fetch in one batch to match body to canonical species/color.

I'm also trashing the weird caching mechanism we did here, because in practice it doesn't seem reliable anyway. If anything, I'd want to look at stronger CDN caching. (I made a small improvement to the caching annotation, but ultimately it still doesn't matter, because this query uses logged-in stuff and always comes out max-age=0 anyway.)
2021-03-18 13:02:06 -07:00
..
exported-user-data delete-user.js script 2021-03-10 05:19:51 -08:00
build-cached-data.js add isCommonlyUsedByItems to Zone 2020-09-01 01:16:30 -07:00
cache-asset-manifests.js Keep track of when manifest was last cached 2021-03-11 02:23:40 -08:00
delete-user.js delete-user.js script 2021-03-10 05:19:51 -08:00
export-users-to-auth0.js Export individual user to auth0 2021-03-10 05:18:31 -08:00
setup-mysql-dev-constants.sql add closet_lists to dev schema too 2020-10-22 20:32:02 -07:00
setup-mysql-dev-schema.sql add closet_lists to dev schema too 2020-10-22 20:32:02 -07:00
setup-mysql.sql Simpler, faster modeling query 2021-03-18 13:02:06 -07:00