Open sfc-gh-nneff opened 10 months ago
The minimum billable time period for a virtual warehouse is 60 seconds.
https://docs.snowflake.com/en/user-guide/warehouses-considerations#how-are-credits-charged-for-warehouses
Setting the timeout for a warehouse at 5 seconds doesn't really do any good from a credit-usage perspective, since our dynamic table schedule is to refresh every 1 minute.
It also begs the question of "I wonder if SF has changed the billing policy for virtual warehouses?"
Also, IIRC the same warehouse is used for querying the tables in the demo, and it's odd/distracting to have the warehouse timeout after 5 seconds when querying / playing with the data in the demo (removing any cache).
I suggest 60 seconds (barring any other information).
Describe the suggestions A couple of items (minor)
AUTO_SUSPEND
on the Virtual Warehouse is 5 seconds. Is there a particular reason for this? I'm not sure the 5 second timeout does anything special and might confuse people new to Snowpipe Streaming. (Warehouse is only used for Dynamic Table updating and querying of the data, to my knowledge).CLIENT
is the name given to the client. PerhapsVHOL_CDC_CLIENT1
might be a better identifier? The demo does not view the billing for Snowpipe Streaming (that's fine), but when viewing the billing, VHOL_CDC_CLIENT1 is nice to see in the output from snowpipe_streaming_client_history instead ofCLIENT
.URLs / Resources Needing Modification
*** For CLIENT Name Java code in Zip file
*** For the Warehouse AUTO_SUSPEND property