I often work with big tables that change daily. A typical table might be:
|basket_id (int) | item_id (int) |is_current_basket (bool) | time_added (timestamp)| quantity (int) |
And be ~5b records long.
The way this table is “meant to be used” is something like
SELECT basket_id, SUM(price * quantity) AS basket_value
FROM baskets JOIN prices ON prices.product_id = baskets.product_id
GROUP BY basket_id
WHERE is_current_basket = 1
I want to understand how cheap/expensive it’d be to keep this data up to date using snowflake? Would I have to have one xs instance always running to query this data?