Couchbase, Inc.
COST-BASED OPTIMIZATION FOR DOCUMENT-ORIENTED DATABASE QUERIES ON ARRAYS
Last updated:
Abstract:
A document-oriented database system generates an optimal query execution plan for database queries on an untyped data field included in a collection of documents. The system generates histograms for multiple types of data stored by the untyped data field and uses the histograms to assign costs to operators usable to execute the database query. The system generates the optimal query execution plan by selecting operators based on the assigned costs. In various embodiments, the untyped data field stores scalars, arrays, and objects.
Status:
Application
Type:
Utility
Filling date:
1 Apr 2022
Issue date:
14 Jul 2022