hottubpatentshottub.tech
US 10,061,808 B2#114742 Most CitedActiveUnited States (USPTO)Utility

Cached views

0Forward Citations (#114742 Global)
0.0/yrCitation Velocity (#114742 Global)
0.98Citation PageRank (#114742 Global)
31Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

Embodiments relate to view caching techniques that cache for a limited time, some of the (intermediate) results of a previous query execution, in order to avoid expensive re-computation of query results. Particular embodiments may utilize a cache manager to determine whether information relevant to a subsequent user request can be satisfied by an existing cache instance or view, or whether creation of an additional cache instance is appropriate. At design time, cache defining columns of a view are defined, with user input parameters automatically being cache defining. Cache instances are created for each tuple of literals for the cache defining columns, and for each explicit or implicit group by clause. Certain embodiments may feature enhanced reuse between cache instances, in order to limit memory footprint. Over time a cache instances may be evicted from memory based upon implementation of a policy such as a Least Recently Used (LRU) strategy.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 31 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method comprising: an engine of an in-memory database storing in the in-memory database, a cache view comprising an existing cache instance including a plurality of cache defined columns and a grouping; the engine receiving a query including parameters comprising a MEDIAN aggregation function that is not composable; the engine determining when the parameters match all of the cache-defined columns and the grouping; when a parameter does not match all of the cache-defined columns and the grouping, returning a query result satisfied by a view from an underlying database; when the parameters match all of the cache-defined columns and the grouping, the engine determining when the existing cache instance satisfies the query; when the existing cache instance does not satisfy the query, the engine creating a new cache instance with a view from the underlying database to add to the cache view, and returning the query result with the new cache instance, wherein the new cache instance is created for each tuple of literals for all of the cache-defined columns, and wherein the new cache instance is grown incrementally from another query utilizing an UPSERT function; when the existing cache instance satisfies the query and the cache-defined columns are equal, the engine returning the query result with the existing cache instance, wherein the existing cache instance satisfies the query when a same explicit group-by clause is used for the grouping.

  2. Claim 2Depends on #1

    The method as in claim 1 wherein the existing cache instance satisfies the query when a same requested column list is used for the grouping.

  3. Claim 3Depends on #1

    The method as in claim 1 further comprising evicting the existing cache instance after a period of time.

  4. Claim 4Depends on #3

    The method as in claim 3 wherein the evicting is based upon a Least Recently Used (LRU) strategy.

  5. Claim 5Depends on #1

    The method as in claim 1 further comprising: the engine calculating a cost factor of creating the new cache instance; and the engine considering the cost factor in deciding to create the new cache instance.

  6. Claim 6Independent Claim

    A non-transitory computer readable storage medium embodying a computer program for performing a method, said method comprising: an engine of an in-memory database storing in the in-memory database, a cache view comprising an existing cache instance including a plurality of cache defined columns and a grouping; the engine receiving a query including parameters comprising a MEDIAN aggregation function that is not composable; the engine determining when the parameters match all of the cache-defined columns and the grouping; when a parameter does not match all of the cache-defined columns and the grouping, returning a query result satisfied by a view from an underlying database; when the parameters match all of the cache-defined columns and the grouping, the engine determining when the existing cache instance satisfies the query; when the existing cache instance does not satisfy the query, the engine creating a new cache instance with a view from the underlying database to add to the cache view, and returning the query result with the new cache instance, wherein the new cache instance is created for each tuple of literals for all of the cache-defined columns, and wherein the new cache instance is grown incrementally from another query utilizing an UPSERT function; when the existing cache instance satisfies the query and the cache-defined columns are equal, the engine returning the query result with the existing cache instance, wherein the existing cache instance satisfies the query when a same explicit group-by clause is used for the grouping.

  7. Claim 7Depends on #6

    The non-transitory computer readable storage medium as in claim 6 wherein the existing cache instance satisfies the query when a same requested column list is used for the grouping.

  8. Claim 8Independent Claim

Technical Overview & Description

BACKGROUND Embodiments relate to accessing data from a database, and in particular, to methods and systems providing cached views. Unless otherwise indicated herein, the approaches described in this section are not prior art to the claims in this application and are not admitted to be prior art by inclusion in this section. Databases have evolved to afford both increased capacity and complexity of the data structures that may be stored. As a result, customers can run complex queries on database tables from the application layer, without changing the underlying data model. Instead, databases such as in memory database architectures may rely upon complex models that join, project, and aggregate the existing tables using relational operators in order to provide insights to the business user. These models and resulting database queries may implicate up to hundreds of database tables, and produce very large intermediate results in the realm of even billions of records. Depending on the usage pattern of an overlying application building upon such a database, such complex queries can be run in a high frequency, producing a large query workload for the underlying database management system. In order to reduce this workload, and avoid expensive query re-computation, some database management systems may employ caching techniques. With the advent of more powerful database technology, however, such traditional caching techniques may still result in the database management system being forced to handle large data volumes. Accordingly, there is a need for apparatuses and methods that performing improved caching approaches. SUMMARY Embodiments relate to view caching techniques that cache for a limited time, some of the (intermediate) results of a previous query execution, in order to avoid expensive re-computation of query results. Particular embodiments may utilize a cache manager to determine whether information relevant to a subse

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 (31)

PatentTitleYearCitations

Non-Patent Literature (2)

  • Guo et al., Cooperative Local Caching Under Heterogeneous File Preferences, 2015, 14 pages.
  • Muller et al., Efficient Aggregate Cache Revalidation in an In-Memory Column Store, University of Potsdam, Germany, 2014, 8 pages.