I am wondering if anyone has optimized a Snowflake table to support transactional type queries and the steps you took.
Example Table:
| CHILD_ID | PARENT_ID |
|---|---|
| 1 | 9 |
| 2 | 9 |
| 3 | 4 |
Example Query:
SELECT PARENT_ID
FROM TABLE
WHERE CHILD_ID = 1
What would be the best way to run these types of queries? Should I do a clustering key on CHILD_ID? Should I have these queries run on an XS warehouse? In the query profile, it seems like most of the time is spent on Initialization.