D2.2 - EXPLAIN VIRTUAL WAREHOUSE BEST PRACTICES Flashcards
1
Q
‘Scale Up’ compared to ‘Scale Out’
A
Scale up: Larger warehouse
Scale Out: Creating or updating to a multi-cluster (requires enterprise edition)
2
Q
Benefits of resizing a warehouse
A
- Generally improves query performance, particularly for larger, more complex queries
- It CAN but is not meant to help reduce the queuing that occurs if a warehouse does not have enough compute resources to process all the queries that are submitted concurrently; warehouse clustering is recommended for queueing issues
3
Q
Benefits of a Multi-Cluster warehouse
A
- Designed specifically for handling queueing and performance issues related to large numbers of concurrent users and/or queries
- Additionally, multi-cluster warehouse can help automate this process if your number of users/queries tend to fluctuate
4
Q
Types of Virtual Warhouse
A
- 10 Sizes of virtual warehouse
- XS, S, M, L, XL, 2XL, 3XL, 4XL, 5XL, 6XL
- Each warehouse doubles computing power and doubles the number of credits billed per hour
- Warehouses are only billed when running. They bill for a 60-second minimum and then every second after.
5
Q
The Key to using data warehouses effectively?
A
- Experiment with different types of queries and different warehouse sizes to determine the combos that best me your specific query needs and workloads
- Don’t focus on warehouse size. Snowflake utilizes per-second billing, so you can run larger warehouses (Large, XL, 2XL etc) and simply suspend them when not in use
6
Q
How to view load monitoring chart?
A
You must have a role that has the MONITOR privilege on the warehouse
7
Q
What does the web interface provide?
A
- A query load chart that depicts concurrent queries processed by a warehouse over a two-week period.
- The warehouse query load measures the average number of queries that were running or queued within a specific interval
8
Q
When you notice a query in running slowly?
A
- Check whether an overloaded warehouse is causing the query to compete for resources or get queued:
- IF running query load is high or there is queuing, add another warehouse
- IF the running query load is low but query performance is still slow, resize warehouse for more computer resources