You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blocklist queries on initial pageload and whenever a filter is applied are very costly to the SQL server. There isn't a lot we can do about the filter queries, but we could cache the initial pageload query as the results will only change each time we parse re-parse the blockchain (and review messages). In particular, here are the queries I intend to cache:
SELECT DISTINCT block_height FROM coinbase_messages_unique ORDER BY block_height;
SELECT DISTINCT block_height FROM address_messages_unique ORDER BY block_height;
SELECT DISTINCT block_height FROM op_return_address_messages_unique ORDER BY block_height;
SELECT DISTINCT block_height FROM coinbase_messages_unique WHERE valid = 1 ORDER BY block_height;
SELECT DISTINCT block_height FROM address_messages_unique WHERE valid = 1 ORDER BY block_height;
SELECT DISTINCT block_height FROM op_return_address_messages_unique WHERE valid = 1 ORDER BY block_height;
SELECT DISTINCT block_height FROM coinbase_messages_unique WHERE nsfw = 0 ORDER BY block_height;
SELECT DISTINCT block_height FROM address_messages_unique WHERE nsfw = 0 ORDER BY block_height;
SELECT DISTINCT block_height FROM op_return_address_messages_unique WHERE nsfw = 0 ORDER BY block_height;
SELECT DISTINCT block_height FROM coinbase_messages_unique WHERE bookmarked = 1 ORDER BY block_height;
SELECT DISTINCT block_height FROM address_messages_unique WHERE bookmarked = 1 ORDER BY block_height;
SELECT DISTINCT block_height FROM op_return_address_messages_unique WHERE bookmarked = 1 ORDER BY block_height;
The text was updated successfully, but these errors were encountered:
Blocklist queries on initial pageload and whenever a filter is applied are very costly to the SQL server. There isn't a lot we can do about the filter queries, but we could cache the initial pageload query as the results will only change each time we parse re-parse the blockchain (and review messages). In particular, here are the queries I intend to cache:
The text was updated successfully, but these errors were encountered: