Persisting database query plans that include dynamic conditions
US12386835B1 · kind B1 · utility
Assignee
Inventors
Key dates
| Filing date | Aug 30, 2024 |
| Grant date | Aug 12, 2025 |
| Priority date | — |
| Expiry date | Aug 30, 2044 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F16/24552
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
The present disclosure involves systems, software, and computer implemented methods for managing database query plans with dynamic conditions. One example method includes receiving a request to process a query based on at least one dynamic condition. A serialized abstract query plan is identified, deserialized, and converted into a query optimizer tree. A condition provider procedure is invoked to generate a first filter string for each view in the query optimizer tree. Comparisons are made to determine matches between first filter strings and corresponding second filter string stored in the query optimizer tree. In response to determining that a first filter string does not match the corresponding second filter string, query plan compilation is triggered. In response to determining that each filter string matches each corresponding second filter string, a query plan is generated based on the converted query optimizer tree and the query is executed using the query plan.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.