Implementing different secondary indexing schemes for different segments stored via a database system
Abstract
A database system is operable to generate a first segment that includes a first subset of a plurality of rows. A first secondary indexing scheme for indexing the first segment is selected from a plurality of secondary indexing options, and first index data for the first segment is generated in accordance with the first secondary indexing scheme. A second segment is generated that includes a second subset of the plurality of rows. A second secondary indexing scheme for indexing the second segment is selected from the plurality of secondary indexing options, and second index data is generated for the second segment in accordance with the second secondary indexing scheme. Execution of a query is facilitated by utilizing the first index data and the second index data.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 40 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for execution by at least one processor of a database system, comprising: generating a first segment that includes, for each of a first subset of a plurality of rows of a dataset, a first plurality of column values corresponding to all of a set of columns of the dataset; selecting, for the first segment, a first secondary indexing scheme for indexing the set of columns from a plurality of secondary indexing options, wherein the plurality of secondary indexing options includes a set of secondary indexing types, wherein a first one of the set of secondary indexing types includes a first set of configurable parameters, and wherein selecting the first secondary indexing scheme includes selecting the first one of the set of secondary indexing types and includes further selecting first parameter selections for each of the first set of configurable parameters for the first one of the set of secondary indexing types; generating first index data for the first segment in accordance with the first secondary indexing scheme; storing the first segment and the first index data for the first segment in memory; generating a second segment that includes, for each of a second subset of the plurality of rows of the dataset, a second plurality of column values corresponding to all of the set of columns of the dataset, wherein the second subset of the plurality of rows and the first subset of the plurality of rows are mutually exclusive; selecting, for the second segment, a second secondary indexing scheme for indexing the set of columns from the plurality of secondary indexing options, wherein the second secondary indexing scheme is different from the first secondary indexing scheme based on indexing of at least one column of the set of columns in the first secondary indexing scheme being different from the indexing of the at least one column in the second secondary indexing scheme, and wherein selecting the second secondary indexing scheme includes selecting the first one of the set of secondary indexing types and includes further selecting second parameter selections for each of the first set of configurable parameters for the first one of the set of secondary indexing types that are different from the first parameter selections; generating second index data for the second segment in accordance with the second secondary indexing scheme; storing the second segment and the second index data for the second segment in memory; and facilitating execution of a query against the dataset by utilizing the first index data and the second index data.
- Claim 2Depends on #1
The method of claim 1, further comprising: generating first local distribution information for the first segment, wherein the first secondary indexing scheme is selected for the first segment from the plurality of secondary indexing options based on the first local distribution information; and generating second local distribution information for the second segment, wherein the second secondary indexing scheme is selected for the second segment from the plurality of secondary indexing options based on the second local distribution information, and wherein the second secondary indexing scheme is different from the first secondary indexing scheme based on the second local distribution information being different from the first local distribution information.
- Claim 3Depends on #1
The method of claim 1, wherein the set of column includes at least a first column, a second column, and a third column, wherein plurality of secondary indexing options includes a set of secondary indexing options corresponding to different subsets of the set of columns, wherein the first secondary indexing scheme includes indexing a first subset of the set of columns, wherein the first subset of the set of columns includes at least the first column and the second column, wherein the first subset of the set of column excludes at least the third column, wherein the second secondary indexing scheme includes indexing a second subset of the set of columns, wherein the second subset of the set of columns includes at least the first column and the third column, and wherein the second subset of the set of column excludes at least the second column.
- Claim 4Depends on #3
The method of claim 3, wherein the first subset of the set of columns includes a first number of columns, wherein the first index data generated for the first segment correspond to indexes for exactly the first number of columns based on applying the first secondary indexing scheme, wherein the second subset of the set of columns includes a second number of columns, wherein the second index data generated for the second segment correspond to indexes for exactly the second number of columns based on applying the second secondary indexing scheme, and wherein the first number of columns is one of: a greater than the second number of columns, or less than the second number of columns.
- Claim 5Depends on #1
The method of claim 1, wherein the set of column includes a first column, wherein the plurality of secondary indexing options includes a set of secondary indexing options corresponding to a plurality of different indexing types for indexing the first column, wherein the first secondary indexing scheme includes indexing the first column via a first indexing type of the plurality of different indexing types, and wherein the second secondary indexing scheme includes indexing the first column via a second indexing type of the plurality of different indexing types that is different from the first indexing type.
- Claim 6Depends on #5
The method of claim 5, wherein the plurality of different indexing types includes at least two of: a bloom filter, a projection index, a data-backed index, a filtering index, a composite index, a zone map, a bit map, or a B-tree.
- Claim 7Depends on #1
The method of claim 1, wherein the set of column includes a first column, wherein the plurality of secondary indexing options includes corresponding to selection of whether to index each of the set of columns, wherein the second secondary indexing scheme includes indexing the first column, and wherein the second secondary indexing scheme excludes indexing of the first column.
- Claim 8Depends on #1
The method of claim 1, wherein the set of secondary indexing types includes at least one of: a bloom filter, a projection index, a data-backed index, a filtering index, a composite index, a zone map, a bit map, or a B-tree, wherein the first index data is generated in accordance with the first one of the set of secondary indexing types, further comprising: generating a third segment that includes, for each of a third subset of the plurality of rows of the dataset, a third plurality of column values corresponding to all of the set of columns of the dataset, wherein the third subset of the plurality of rows, the second subset of the plurality of rows, and the first subset of the plurality of rows are mutually exclusive; and selecting, for the third segment, a third secondary indexing scheme for indexing the set of columns from the plurality of secondary indexing options, wherein the third secondary indexing scheme is different from the first secondary indexing scheme and the second secondary indexing scheme, wherein selecting the third secondary indexing scheme includes selecting a second one of the set of secondary indexing types, and wherein third index data for the third segment is generated in accordance with the second one of the set of secondary indexing types.
- Claim 9Depends on #1
The method of claim 1, wherein the set of secondary indexing types includes at least two of: a bloom filter, a projection index, a data-backed index, a filtering index, a composite index, a zone map, a bit map, or a B-tree.
- Claim 10Depends on #1
The method of claim 1, wherein the first index data is distinct from at least one primary index of the first segment, and wherein the second index data is distinct from at least one primary index of the second segment.
- Claim 11Depends on #1
The method of claim 1, wherein the first segment is generated in a first temporal period, wherein the second segment is generated in a second temporal period that is after the first temporal period, and wherein, after the first temporal period and prior to the second temporal period, the method further includes: updating the plurality of secondary indexing options to include a new secondary indexing option; wherein the second secondary indexing scheme is different from the first secondary indexing scheme based on the second secondary indexing scheme being selected as the new secondary indexing option.
- Claim 12Depends on #1
The method of claim 1, wherein selecting the first secondary indexing scheme for the first segment from the plurality of secondary indexing options is based on at least one of: first local distribution information corresponding to the first segment, user-provided hint data, or system-provided hint data; and wherein selecting the second secondary indexing scheme for the second segment from the plurality of secondary indexing options is based on at least one of: second local distribution information corresponding to the second segment, the user-provided hint data, or the system-provided hint data.
- Claim 13Independent Claim
A segment indexing module comprises: at least one processor; and a memory that stores operational instructions that, when executed by the at least one processor, cause the segment indexing module to: generate a first segment that includes, for each of a first subset of a plurality of rows of a dataset, a first plurality of column values corresponding to all of a set of columns of the dataset; select, for the first segment, a first secondary indexing scheme for indexing the set of columns from a plurality of secondary indexing options, wherein the plurality of secondary indexing options includes a set of secondary indexing types, wherein a first one of the secondary indexing types includes a first set of configurable parameters, wherein selecting the first secondary indexing scheme includes selecting the first one of the set of secondary indexing types and includes further selecting first parameter selections for each of the first set of configurable parameters for the first one of the set of secondary indexing types; generate first index data for the first segment in accordance with the first secondary indexing scheme; store the first segment and the first index data for the first segment in memory; generate a second segment that includes, for each of a second subset of the plurality of rows of the dataset, a second plurality of column values corresponding to all of the set of columns of the dataset, wherein the second subset of the plurality of rows and the first subset of the plurality of rows are mutually exclusive; select, for the second segment, a second secondary indexing scheme for indexing the set of columns from the plurality of secondary indexing options, wherein the second secondary indexing scheme is different from the first secondary indexing scheme based on indexing of at least one column of the set of columns in the first secondary indexing scheme being different from the indexing of the at least one column in the second secondary indexing scheme, and wherein selecting the second secondary indexing scheme includes selecting the first one of the set of secondary indexing types and includes further selecting second parameter selections for each of the first set of configurable parameters for the first one of the set of secondary indexing types that are different from the first parameter selections; generate second index data for the second segment in accordance with the second secondary indexing scheme; store the second segment and the second index data for the second segment in memory; and facilitate execution of a query against the dataset by utilizing the first index data and the second index data.
- Claim 14Depends on #13
The segment indexing module of claim 13, wherein the operational instructions that, when executed by the at least one processor, further cause the segment indexing module to: generate first local distribution information for the first segment, wherein the first secondary indexing scheme is selected for the first segment from the plurality of secondary indexing options based on the first local distribution information; and generate second local distribution information for the second segment, wherein the second secondary indexing scheme is selected for the second segment from the plurality of secondary indexing options based on the second local distribution information, and wherein the second secondary indexing scheme is different from the first secondary indexing scheme based on the second local distribution information being different from the first local distribution information.
- Claim 15Depends on #13
The segment indexing module of claim 13, wherein the set of column includes at least a first column, a second column, and a third column, wherein the plurality of secondary indexing options includes a set of secondary indexing options corresponding to different subsets of the set of columns, wherein the first secondary indexing scheme includes indexing a first subset of the set of columns, wherein the first subset of the set of columns includes at least the first column and the second column, wherein the first subset of the set of column excludes at least the third column, wherein the second secondary indexing scheme includes indexing a second subset of the set of columns, wherein the second subset of the set of columns includes at least the first column and the third column, and wherein the second subset of the set of column excludes at least the second column.
- Claim 16Depends on #13
The segment indexing module of claim 13, wherein the set of column includes a first column, wherein the plurality of secondary indexing options includes a set of secondary indexing options corresponding to a plurality of different indexing types for indexing the first column, wherein the first secondary indexing scheme includes indexing the first column via a first indexing type of the plurality of different indexing types, and wherein the second secondary indexing scheme includes indexing the first column via a second indexing type of the plurality of different indexing types that is different from the first indexing type.
- Claim 17Depends on #16
The segment indexing module of claim 16, wherein the set of secondary indexing types includes at least two of: a bloom filter, a projection index, a data-backed index, a filtering index, a composite index, a zone map, a bit map, or a B-tree.
- Claim 18Depends on #13
The segment indexing module of claim 13, wherein the set of secondary indexing types includes at least one of: a bloom filter, a projection index, a data-backed index, a filtering index, a composite index, a zone map, a bit map, or a B-tree, wherein the first index data is generated in accordance with the first one of the set of secondary indexing types, and wherein the operational instructions that, when executed by the at least one processor, further cause the segment indexing module to: generate a third segment that includes, for each of a third subset of the plurality of rows of the dataset, a third plurality of column values corresponding to all of the set of columns of the dataset, wherein the third subset of the plurality of rows, the second subset of the plurality of rows, and the first subset of the plurality of rows are mutually exclusive; and select, for the third segment, a third secondary indexing scheme for indexing the set of columns from the plurality of secondary indexing options, wherein the third secondary indexing scheme is different from the first secondary indexing scheme and the second secondary indexing scheme, wherein selecting the third secondary indexing scheme includes selecting a second one of the set of secondary indexing types, and wherein third index data for the third segment is generated in accordance with the second one of the set of secondary indexing types.
- Claim 19Depends on #13
The segment indexing module of claim 13, wherein the first segment is generated in a first temporal period, wherein the second segment is generated in a second temporal period that is after the first temporal period, and wherein, after the first temporal period and prior to the second temporal period, the operational instructions, when executed by the at least one processor, further cause the segment indexing module to: update the plurality of secondary indexing options to include a new secondary indexing option; wherein the second secondary indexing scheme is different from the first secondary indexing scheme based on the second secondary indexing scheme being selected as the new secondary indexing option.
- Claim 20Independent Claim
A non-transitory computer readable storage medium comprises: at least one memory section that stores operational instructions that, when executed by a processing module that includes a processor and a memory, causes the processing module to: generate a first segment that includes, for each of a first subset of a plurality of rows of a dataset, a first plurality of column values corresponding to all of a set of columns of the dataset; select, for the first segment, a first secondary indexing scheme for indexing the set of columns from a plurality of secondary indexing options, wherein the plurality of secondary indexing options includes a set of secondary indexing types, wherein a first one of the secondary indexing types includes a first set of configurable parameters, wherein selecting the first secondary indexing scheme includes selecting the first one of the set of secondary indexing types and includes further selecting first parameter selections for each of the first set of configurable parameters for the first one of the set of secondary indexing types; generate first index data for the first segment in accordance with the first secondary indexing scheme; store the first segment and the first index data for the first segment in memory; generate a second segment that includes, for each of a second subset of the plurality of rows of the dataset, a second plurality of column values corresponding to all of the set of columns of the dataset, wherein the second subset of the plurality of rows and the first subset of the plurality of rows are mutually exclusive; select, for the second segment, a second secondary indexing scheme for indexing the set of columns from the plurality of secondary indexing options, wherein the second secondary indexing scheme is different from the first secondary indexing scheme based on indexing of at least one column of the set of columns in the first secondary indexing scheme being different from the indexing of the at least one column in the second secondary indexing scheme, and wherein selecting the second secondary indexing scheme includes selecting the first one of the set of secondary indexing types and includes further selecting second parameter selections for each of the first set of configurable parameters for the first one of the set of secondary indexing types that are different from the first parameter selections; generate second index data for the second segment in accordance with the second secondary indexing scheme; store the second segment and the second index data for the second segment in memory; and facilitate execution of a query against the dataset by utilizing the first index data and the second index data.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present U.S. Utility patent application claims priority pursuant to 35 U.S.C. § 120 as a continuation of U.S. Utility application Ser. No. 17/211,278, entitled “ PER-SEGMENT SECONDARY INDEXING IN DATABASE SYSTEMS ” , filed Mar. 24, 2021, which claims priority pursuant to 35 U.S.C. § 119(e) to U.S. Provisional Application No. 63/091,501, entitled “ PER-SEGMENT SECONDARY INDEXING IN DATABASE SYSTEMS ” , filed Oct. 14, 2020, both of which are hereby incorporated herein by reference in their entirety and made part of the present U.S. Utility patent application for all purposes. STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT Not Applicable. INCORPORATION-BY-REFERENCE OF MATERIAL SUBMITTED ON A COMPACT DISC Not Applicable. BACKGROUND OF THE INVENTION Technical Field of the Invention This invention relates generally to computer networking and more particularly to database system and operation. Description of Related Art Computing devices are known to communicate data, process data, and/or store data. Such computing devices range from wireless smart phones, laptops, tablets, personal computers (PC), work stations, and video game devices, to data centers that support millions of web searches, stock trades, or on-line purchases every day. In general, a computing device includes a central processing unit (CPU), a memory system, user input/output interfaces, peripheral device interfaces, and an interconnecting bus structure. As is further known, a computer may effectively extend its CPU by using “ cloud computing ” to perform one or more computing functions (e.g., a service, an application, an algorithm, an arithmetic logic function, etc.) on behalf of the computer. Further, for large services, applications, and/or functions, cloud computing may be performed by multiple cloud computing resources in a distributed manner to improve the response time for completion of the service, application, and/or function. Of the man
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (40)
Non-Patent Literature (10)
- A new high performance fabric for HPC, Michael Feldman, May 2016, Intersect360 Research.
- Alechina, N. (2006-2007). B-Trees. School of Computer Science, University of Nottingham, http://www.cs.nott.ac.uk/
- ˜
- psznza/G5BADS06/lecture13-print.pdf. 41 pages.
- Amazon DynamoDB: ten things you really should know, Nov. 13, 2015, Chandan Patra, http://cloudacademy.com/blog/amazon-dynamodb-ten-thing.
- An Inside Look at Google BigQuery, by Kazunori Sato, Solutions Architect, Cloud Solutions team, Google Inc., 2012.
- Big Table, a NoSQL massively parallel table, Paul Krzyzanowski, Nov. 2011, https://www.cs.rutgers.edu/pxk/417/notes/contentlbigtable.html.
- Distributed Systems, Fall2012, Mohsen Taheriyan, http://www-scf.usc.edu/-csci57212011Spring/presentations/Taheriyan.pptx.
- International Searching Authority; International Search Report and Written Opinion; International Application No. PCT/US2017/054773; Feb. 13, 2018; 17 pgs.
- International Searching Authority; International Search Report and Written Opinion; International Application No. PCT/US2017/054784; Dec. 28, 2017; 10 pgs.