Multi-phase query plan caching
AssigneeSnowflake Inc.
InventorsXuelai Cui, Prashant Gaharwar, Vineet Garg, Boyung Lee, Kevin Ye Jie Li, Nicola Dan Onose, Andrew Z. Xue, Jiaqi Yan
Life of this patent
Estimating the term…
Loading patent…
AssigneeSnowflake Inc.
InventorsXuelai Cui, Prashant Gaharwar, Vineet Garg, Boyung Lee, Kevin Ye Jie Li, Nicola Dan Onose, Andrew Z. Xue, Jiaqi Yan
Estimating the term…
The subject technology receives a query, the query including a statement for performing the query. The subject technology performs a first lookup operation on a multi-phase cache based on the query. The subject technology performs, in response to a first cache miss of the multi-phase cache, parsing of the statement from the query. The subject technology performs, based on the parsing, a compilation process on the query to generate a compiled query plan, the compilation process determining an optimization and a generalization for the query. The subject technology determines that the compiled query plan is cacheable. The subject technology registers, in response to the compiled query plan being cacheable, a dummy entry in the multi-phase cache.
A network-based database system comprising:
A method comprising:
A non-transitory computer-storage medium comprising instructions that, when executed by one or more processors of a machine, configure the machine to perform operations comprising:
Dependencies are inferred from the claim text.