[go: up one dir, main page]

EP2596430B1 - A system and method for the parallel execution of database queries over cpus and multi core processors - Google Patents

A system and method for the parallel execution of database queries over cpus and multi core processors Download PDF

Info

Publication number
EP2596430B1
EP2596430B1 EP11819514.8A EP11819514A EP2596430B1 EP 2596430 B1 EP2596430 B1 EP 2596430B1 EP 11819514 A EP11819514 A EP 11819514A EP 2596430 B1 EP2596430 B1 EP 2596430B1
Authority
EP
European Patent Office
Prior art keywords
query
sub
queries
dbms
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
EP11819514.8A
Other languages
German (de)
French (fr)
Other versions
EP2596430A4 (en
EP2596430A1 (en
Inventor
Konstatin Varakin
Ami Gal
Ori Katz Oz
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sqream Technologies Ltd
SQREAM Tech Ltd
Original Assignee
Sqream Technologies Ltd
SQREAM Tech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sqream Technologies Ltd, SQREAM Tech Ltd filed Critical Sqream Technologies Ltd
Publication of EP2596430A1 publication Critical patent/EP2596430A1/en
Publication of EP2596430A4 publication Critical patent/EP2596430A4/en
Application granted granted Critical
Publication of EP2596430B1 publication Critical patent/EP2596430B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24532Query optimisation of parallel queries
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/24569Query processing with adaptation to specific hardware, e.g. adapted for using GPUs or SSDs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5017Task decomposition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/509Offload

Definitions

  • the present invention relates to the field of data bases and data sets queries. More particularly, the invention relates to boosting large and/or ongoing data queries utilizing one or more central processing units and one or more hardware that include hundreds of cores, such as graphical processing units.
  • a typical database/data set is an organized collection of data for one or more uses, in digital form.
  • databases have become essential ingredients in almost every system.
  • Digital databases are managed using a Database Management System (DBMS).
  • DBMS Database Management System
  • the DBMS is a software which operates a database by providing retrieval (query) services, manipulation and update services, management and administration services, storage, access, security, backup and other features.
  • a DBMS is categorized based on the database model it supports, such as relational or eXtensible Markup Language (XML), the type of computer it supports, such as a server cluster or a mobile phone, the storage sets it uses, the memory type it uses, such as in-memory databases flash memory databases, the query language that accesses the database, such as Structured Query Language (SQL) or XQuery or No-SQL query protocols or other data query protocols.
  • SQL Structured Query Language
  • SQL Structured Query Language
  • No-SQL query protocols or other data query protocols.
  • a Query language is a high-level language which is specifically designed to handle the interactions with a database.
  • the database queries are constructed using a query language, and are then used to access and get necessary information from the database. More specifically, a database query is a piece of code which is sent to a Central Processing Unit (CPU) for the purpose of retrieving information from the database.
  • CPU Central Processing Unit
  • a database "query” is a standard database "question” asked from the DBMS by a third party, namely, application that uses the DBMS. The result of the query is the retrieved information which is returned by the DBMS.
  • Performance improvement is the concept of modifying a particular process or system to increase its efficiency.
  • performance improvement reduces the query time, and therefore, anticipated results are received faster.
  • receiving query results fast is a crucial factor in their operability.
  • a 50 to 100 percent improvement in the performance is considered a very significant improvement.
  • Parallel processing is the ability to carry out multiple operations or tasks simultaneously.
  • One of the most common ways to achieve performance improvement is to employ parallel processing while executing a query.
  • Parallel queries allow breaking a single query into multiple subtasks and executing them on multiple general-purpose Central Processing Units (CPUs) in a multiprocessors computer. While such manner of operation increases speed it requires more resources, suffers excessive power consumption, and occupies a large storage space.
  • CPUs Central Processing Units
  • Moore's law describes a long-term trend in the history of computing hardware.
  • the number of transistors that can be placed inexpensively on an Integrated Circuit (IC) is doubled approximately every two years.
  • the capabilities of many digital electronic devices are strongly linked to Moore's law, e.g., processing speed, memory capacity, sensors and even the number and size of pixels in digital cameras. All of these are improving at (roughly) exponential rates as well.
  • the hardware limitation accurately described by Moor's law dictates a limitation over the number of CPUs that may participate in a parallel query. Parallel queries utilizing CPUs are also limited by the relatively low number of cores in each CPU.
  • a Graphics Processing Unit also known as a Visual Processing Unit (VPU) is a specialized microprocessor that offloads and accelerates 3D or 2D graphics rendering from the microprocessor (i.e., CPU). More specifically, the GPU has been particularly designed to process graphics and streams for visual aspects (such as movies). It is used in embedded systems, mobile phones, personal computers, workstations, and game consoles. Modern GPUs which comprise hundreds of cores that operate in parallel are very efficient in manipulating computer graphics, and their highly parallel structure makes them more effective than general-purpose CPUs for a range of complex algorithms. More than 90% of new desktop and notebook computers have integrated GPUs.
  • VPU Visual Processing Unit
  • GPUs are usually designed to operate with a unique and limited input structure known as "stream", but they can also operate in in other common paradigms.
  • Stream processing typically allows high throughput and high latency processing.
  • the GPU is typically connected through a PCI bus or its derivatives, for example, a PCIe bus.
  • GPUs that are provided within the CPU die (typically call on-die GPU), such as AMD Fusion, or Intel GMA.
  • Intel recently introduce the KNIGHTS-FERRY/CORNER, which is a processor based on MIC (Many Inregrated Cores) architecture, and which is connected to a PCI bus.
  • MCP Multi Core Processor
  • MPI Message Passing Interface
  • Stream processing is a computer programming paradigm, which allows some applications to more easily exploit a limited form of parallel processing. Such applications can use multiple computational units, such as the floating point units on a GPU, or the Field Programmable Gate Arrays (FPGAs), without explicitly managing allocation, synchronization, or communication among those units.
  • the stream processing paradigm simplifies parallel software and hardware by restricting the parallel computation which is performed. Given a set of data having a stream format, a series of operations is applied to each element in the stream.
  • stream processing yields several orders of magnitude faster performance than a general-purpose CPU.
  • Stream processing is essentially a compromise, driven by a data-centric model that works very well for traditional GPU-type applications (such as image, video and digital signal processing) but less so for general-purpose CPUs with more randomized data access (such as databases).
  • GPUs allow easier, faster and more efficient execution.
  • a typical GPU comprises several hundreds of cores, and therefore the parallel operation of the GPU is significantly accelerated for those applications that are adapted to operate in a stream structure. Unfortunately, thus far there are many applications that are not adapted for operation on GPU, and one of these applications is the processing of database queries.
  • non intrusive means that the system of the present invention does not require changes in the conventional third party applications, specifically, application code, application architecture, application database structure, methodology of writing the application code and design, etc.
  • automated means that the system automatically adapts its operation to the architecture and database of the third party application, architecture and type of the server database, and typically there is no need to manually change the technology code to do it.
  • Open Computing Language is a framework for writing programs that execute across heterogeneous platforms consisting of CPUs, GPUs, and other processors.
  • OpenCL includes a language for writing kernels (functions that execute on OpenCL devices), plus APIs that are used to define and control the platforms.
  • OpenCL provides parallel computing using task-based and data-based parallelism.
  • OpenCL enables any application to access a GPU even for a non-graphical computing.
  • OpenCL extends the power of the GPU beyond graphics, enabling general-purpose computing on a GPU having plurality of cores.
  • the application refers herein to an OpenCL.
  • OpenCL when refers herein relates to the OpenCL or Cuda or Microsoft C++AMP language and their derivatives, for example, libraries like Thrust, Cudapp, Oclpp, etc.
  • OpenCL refers herein to any framework or programming language for working with parallel computational hardware connected through a PCI bus (like NVIDIA/ATI GPUs or Intel Knights Ferry/Knights Corner or Intel's next generations. Therefore, hereinafter, for the sake of brevity reference in the description is made to "OpenCL".
  • this term in this description refers to any platform which is capable of carrying out processing over both one or more CPUs and one or more MCPs, for example, Nvidia's CUDA, Microsoft's C++AMP and their derivatives: Thrust, oclpp, cudapp, etc.
  • CPU central processing unit
  • MCP Multi Core Processor
  • the invention relates to a system for parallel execution of database queries over one or more Central Processing Units (CPUs), and one or more Multi Core Processors, (MCPs), the system comprises: (a) a query analyzer for receiving a query, dividing the query to plurality of sub-queries, and for computing and assigning to each sub-query a target address of either a CPU of a MCP, whichever is more efficient for executing said sub-query; (b) a query compiler for receiving said sub-queries from said query analyzer, creating an Abstract Syntax Tree (AST) and OpenCL primitives only for those sub-queries that are targeted to an MCP, and for conveying both the remaining sub-queries, and the AST and the OpenCL code to a virtual machine; and (A) Virtual Machine (VM) which comprises: (c.1) a task bank for containing said received sub-queries that are targeted to one or more CPUs for DBMS execution, and said received primitives that are targeted to said one or more MCPs; (c.
  • the system further comprises a query interceptor for intercepting a query, and for conveying the query to said analyzer.
  • the interceptor is located within the DBMS or is external to said DBMS.
  • the system further comprises an analyzer database, said analyzer database is in communication with said analyzer, and containing data for assisting the analyzer in the assigning of said target addresses to said sub-queries.
  • the data which is stored in said analyzer database contains indexes, columnar statistics, and distributions.
  • the data readiness in said one or more buffers is the case when a buffer for specific query becomes full of data from the DBMS, or when the DBMS has completed its transfer of data to said buffer
  • the system further comprises a pre-compiled cache for storing MCP primitives that have already been compiled during previous runs, thereby saving compilation time by the query compiler.
  • the system further comprises a Hardware Abstraction Layer (HAL) for monitoring operation of all said MCPs and their various cores, determining those that are is available for performing new tasks, and reporting observations results to said query analyzer.
  • HAL Hardware Abstraction Layer
  • the invention further relates to a method for the parallel execution of database queries over one or more Central Processing Units (CPUs), and one or more Multi Core Processors, (MCPs), the method comprises: (a) receiving a query; (b) dividing the query to plurality of sub-queries, and computing and assigning to each sub-query a target address of either a CPU of a MCP, whichever is more efficient for executing said sub-query; (c) creating from said plurality of sub-queries an Abstract Syntax Tree (AST) and OpenCL primitives only for those sub-queries that are targeted to an MCP, and conveying both the remaining sub-queries, and the AST and the OpenCL code to a virtual machine; and (d) storing within a task bank said sub-queries that are targeted to one or more CPUs for DBMS execution, and said received primitives that are targeted to said one or more MCPs; (e) providing one or more buffers for containing data resulting from sub-queries executions by said one or more
  • a hardware with many MCPs e.g., a conventional GPU, high capacity GPU, sets of GPUs, or equivalent hardware which typically operates over hundreds of cores in parallel can provide an extremely fast processing for specific operations, particularly, but not limiting, those having a stream structure.
  • queries for databases could not be provided on MCPs without modifying the applications, namely, are intrusive, and as a result, queries for databases were limited to operate only with CPUs, that are typically limited to include very few cores.
  • the present invention is utilized by an application from the group of: BI (Business Intelligence), Reporting, DW (Data Warehouse), Logistics Systems, Weather Forecasting, sensor Networks with Wireless Sensor Networks as a private case, Cloud Application Services, Algo-trading, MRI Systems, Gaming Systems, Flight Control Systems, Resource Allocation Systems, Algorithmic Optimization Systems, ERP, SCM, CRM, Big-Data applications, Social Network Applications, etc.
  • BI Business Intelligence
  • DW Data Warehouse
  • Logistics Systems Weather Forecasting
  • sensor Networks with Wireless Sensor Networks as a private case
  • Cloud Application Services Algo-trading
  • MRI Systems Gaming Systems
  • Flight Control Systems Resource Allocation Systems
  • Algorithmic Optimization Systems ERP, SCM, CRM, Big-Data applications, Social Network Applications, etc.
  • the present invention overcomes the abovementioned limitations. More specifically, it is adapted to boost performance in large queries for databases and for data sets that are not residing on DBMS databases (e.g., data sets coming from MRI machines, weather sensors, traffic sensors, large sensor networks, any XML type/format data object, proprietary and binary types/formats data object, and text type/format data object, No-SQL datasets, etc).
  • the present invention is adapted to enable parallel execution of queries over databases or large data sets operating one or more CPUs (which typically includes a few cores) and hardware with many (for example, hundreds) computational units.
  • the hardware with many computational units is an MCP, however, equivalent hardware may be used.
  • the invention is advantageous, as it can be provided as an add-on module of software which does not require any software or hardware modification to the conventional architecture of the DBMS and its associated application.
  • the present invention is provided as a middleware module between the DBMS and the one or more CPUs and one or more MCPs.
  • All the queries that are typically provided in the prior art systems from the DBMS or the application to one or more CPUs are now analyzed and manipulated by the add-on module of the present invention, resulting in newly formatted sub-queries that are then distributed for parallel execution by the CPU and MCP.
  • the module of the present invention analyzes each query, converts it to plurality of corresponding sub-queries, and assigns to each sub-query an address of a CPU or an MCP which is most appropriate in terms of efficiency of operation (time, power, and parallel processing).
  • Fig. 1a is a block diagram illustrating the structure of the module 100 of the present invention.
  • the input to the system is a query process request 101 from the user.
  • the query process request arrives at the query interceptor 115, which prevents the query execution in the conventional manner.
  • the query interceptor 115 may be positioned within the DBMS, or before the DBMS.
  • the intercepted query is then conveyed to query analyzer 102.
  • query analyzer 102 performs segmentation of the query, resulting in a list of several sub-queries 103, according to a query execution plan (QEP).
  • the QEP is either provided by the DBMS or is generated by the query analyzer 102.
  • query analyzer 102 When the query analyzer 102 generates the QEP, it uses its own analyzer database 106 to create the QEP. In a second step, query analyzer 102 computes a target value for each sub-query on said list. The target value is later used for addressing each specific sub-query to an appropriate processing unit, either CPU 104 or MCP 105.
  • the query compiler 107 accepts the list of sub-queries and the execution addresses from the query analyzer 102.
  • the query compiler 120 forms an Abstract Syntax Tree (AST) only for the sub-queries that are targeted to the MCP 105.
  • the AST contains all primitives that should be run on data provided by the DBMS to complete the query.
  • the Query compiler 107 generates the code for primitives in the AST in OpenCL (or equivalent) format and uses an external compiler (NVCC, MSVC, GCC etc) to package them in a DLL or another library format capable for run time execution.
  • the compiler After compiling the primitives to an executable form, the compiler conveys the execution tree (the execution tree is a special form of the AST which not only contains representation that orders commands/instructions to be executed on the MCP, but it also contains pointers to an executable code which is inserted by the query compiler 107 to the AST).
  • This tree reveals to the virtual machine 120 dependencies between routines/primitives or various query parts.
  • Each node in the tree contains information regarding the executable code to run, i.e., its name, location, input and output parameters).
  • One function of the compiler 107 is to insert pointers to executable code to the AST in order to use different executable functions for one MCP primitive, depending on the data.
  • Example 1 "SELECT * FROM T1 ORDER BY T1.a" Assuming T1.a has a string (char[N], varchar, etc.) type it may be preferred to use a bitonic sort on this string. Assuming T1.a has a float type, it may be preferred to use lexicographical sort. The decision is made based on run-time observations of performance (it depends on data which is operated and MCP on the type (single GPU, multiple GPUs, Knights Ferry/Corner, etc.).
  • the virtual machine (VM) 120 receives the execution tree from query compiler 107.
  • the execution tree is constructed from both SQL sub queries intended for solely execution by the CPU 104 on the DBMS, and executable code created by query compiler 107 through AST for solely execution on the MCP 106.
  • the VM 120 inserts this execution tree to a task bank (shown in Fig. 2 ).
  • the task bank enables both in-order and out-of-order execution of primitives and DBMS sub-queries.
  • the task bank now contains sub-queries for DBMS execution by the CPU 104, and those primitives that have been compiled by compiler 107 for execution by the MCP 105.
  • each compiled MCP primitive within the task bank works on data which is provided to him by a corresponding sub-query, which is in turn executed by the CPU 104. Therefore, each MCP primitive is essentially triggered by data which arrives from the DBMS by CPU 104.
  • the VM 120 manages pre-allocated RAM buffers, each of those buffers may optionally be defined as a non-swappable and/or a write-combined memory region.
  • the MCP 105 begins to run the primitives from the task bank (shown in Fig. 2 ).
  • a scheduler of the VM (also shown in Fig. 2 ) coordinates the primitive execution by the MCP 105, depending on the data readiness in the buffer.
  • results at the MCP 105 are sent to a temporal results cache (shown in Fig. 2 ).
  • the MCP 105 may still perform primitives on these results at the cache (if and whenever necessary).
  • Fig. 1b describes in slightly more details the structure of the system of Fig. 1a .
  • the system further comprises a pre-compiled cache 127, which stores all the MCP primitives that have already been compiled during previous runs. In such a manner, when a new MCP primitive arrives from the analyzer 102, the query compiler checks within the pre-compiled cache whether it contains an already compiled same primitive. If so, the compiled primitive is directly returned to the compiler, and embedded within the execution tree with no need for compilation.
  • the system further comprises a Hardware Abstraction Layer (HAL) 126.
  • the HAL monitors all the MCPs and its various cores, and determines which of them is available for performing new tasks from the task bank.
  • the HAL reports its observations to query analyzer 102, to enable it to decide if the query should go to the CPU 104 or to the MCP 105. For example, if the HAL reports that all the MCPs are busy, the query analyzer 102 forwards the execution to the CPU 104 in a form of sub-query. In addition, the HAL reports to the virtual machine 120 about availability of MCP units to enable it to forward tasks from its task bank to an available MCP.
  • Interceptor 115 may be either internal or external to the DBMS. When the interceptor is internal, it catches the query by using its own DBMS driver (for example, OLEDB, or ODBC). When it is external, it allows the user to define its query as an argument to a stored procedure within the DBMS, or any other predefined function. As a result, the function or the procedure forwards the query to the query analyzer 102.
  • DBMS driver for example, OLEDB, or ODBC
  • the query analyzer 102 decides whether the query should be performed by a CPU, a MCP or both.
  • the query analyzer 102 comprises its own analyzer 106 database for estimating the query result-set size.
  • the query analyzer may break the query to separate parts (sub-queries and MCP primitives) and assigns a target (CPU 104 or MCP 105) to each of them. It should be noted again that if the part of the query is found suitable for the CPU 104, it would be executed within the DBMS.
  • the query analyzer 102 may request a query execution plan (QEP) from the DBMS and after parsing the QEP, it could decide what part of the query should be targeted to the CPU, and which part to the MCP.
  • QEP query execution plan
  • Example 2 "select * from employees where salary ⁇ 3000 order by salary", assuming salary is not the key and the analyzer database contains a histogram of, for example, 1000 bars, each bar is the amount of rows in a table with salary between the bar's boundaries.
  • the result-set size can be estimated at a very high speed given the fact that running of 1000 threads simultaneously for each histogram is not at all a problem for an MCP.
  • Each column in the table has the statistics stored in the abovementioned bars, and in the case there is an AND operator between two columns, the system simply chooses a minimal number of rows from the two columns. In case the there is an OR between the two columns, the system sums up the results to obtain the estimated size.
  • This size is used by the VM to allocate buffers in the memory of the MCP or within a RAM.
  • Example 3 a processing operation which is not supported by the MCP, is targeted to the CPU, a ' JOIN ' operation over large databases which is expected to yield a large result (i.e., a result having a large number of elements), is targeted to the MCP, a 'select for update' operation which normally does not require much processing, is typically targeted to the CPU. If the query is simple, or contains DDL statements (e.g., insert, update, delete) it is sent directly to DBMS and executed in a regular manner (as all queries are executed without employing the present invention).
  • DDL statements e.g., insert, update, delete
  • Analyzer database 106 stores in general database indexes, columnar statistics, distributions and optionally other data.
  • the query compiler 107 receives a query, and in turn forms an AST from it.
  • the AST contains all the primitives that should run on data which is provided by the DBMS to complete the query.
  • the compiler finds those MCP primitives that are ready within the pre-compiled cache 127, and inserts pointers to them within the AST. If the a primitive are not found in the pre-compiled cache 127, the compiler generates for it the code in OpenCL or equivalent, and saves it in precompiled cache 127 in a form of dll or any other format that enables run-time execution.
  • Fig. 2 illustrates in block diagram form the structure of the virtual machine 120.
  • the compiler 107 sends the execution tree 210 to the task bank 201.
  • the task bank 201 enables out-of-order execution of primitives.
  • Each primitive is triggered by sub-query signal to the scheduler 202 when one of the events occurs: either at the moment when the buffer 203i for a specific query becomes full of data from the DBMS, or when the DBMS has completed its transfer of data to a buffer.
  • Buffers could be filled by executing a sub-query as a usual SQL query or by executing run-time library in the form of DLL or CLR or another run-time execution format.
  • the scheduler 202 is responsible for the execution of the triggered primitives.
  • the scheduler 202 may execute the pre-compiled code directly 205 or indirectly 206 by passing through linker 204 thereby enabling simultaneous execution of several primitives.
  • the MCP is allocated by HAL 126 (see Fig. lb).
  • the system of the present invention allows a significant increase of throughput in terms of "queries per hour".
  • the present invention does not require modification of the applications that transfer the query to the DBMS, and the DBMS is not required to modify its normal behavior in view of the existence of the MCP.
  • Example 4 discloses a join operation over two large tables, namely, table 1, and table 2. This example is taken from a Business Intelligence (BI) application: Table 1: Items Sales Product Sales TVset 20 Laptop 30 Ferrari (Car) 0 Table 2: Items Price Product Price ($) TVset 2 Laptop 3 Ferrari (Car) 1,000,000,000
  • the task of the system of the present invention is to calculate the amount of money earned. Since it is assumed that the tables are not indexed, one possible optimization is to pre-sort the tables before a JOIN.
  • a JOIN algorithm is executed on table 1 and table 2.
  • the execution of the JOIN over both a CPU 104 and an MCP 105 yields a faster processing compared to performance of same execution by a DBMS over a CPU only.
  • the example above discuss, for the sake of brevity, very small tables. However, in practice the tables are much larger by many orders, and the difference in processing time becomes very significant. In this example there is no need to issue any sub-query and the whole query is converted to MCP primitives performing JOIN.
  • Example 5 This example demonstrates the improvement in query results as obtained by utilizing the present invention.
  • a medical device MRI generates a stream of images.
  • the images are stored in a conventional DBMS.
  • the system of the present invention receives a query from a doctor which examines the patient's images.
  • the doctor seeks for images in the DBMS in which there are areas in the patient's bone density which is lower then normal.
  • the query of the doctor is transferred to system which in turn generates a continuous stream of images with areas marked as suspicious.
  • the doctor's query is therefore executed over the images, yielding much faster results, as the query is executed over both an MCP and a CPU, compared to the traditional methods where the query is performed over a CPU only.
  • Bone density and other medical parameters can be calculated by the use of image processing algorithms. This kind of algorithms performs very fast on GPUs (a private case of an MCP). It is possible to pass the images (assuming that they are stored in DBMS) for processing on GPUs via the system in present invention.
  • Example 6 describes the present invention work with a query execution plan from DBMS.
  • a JOIN occurs between two tables, and it is required to know which table to loop. For example, given that employees table contains 1000 rows, and salary_data only 10 rows, the join must loop on salary_data table (it will take only 10 iterations to complete the JOIN ).
  • the Linker 120 of the VM compacts several MCP primitives to one primitive, and sends it to execution.
  • Example 7 assume 2 queries are submitted
  • the system of the present invention can be provided as a non intrusive system and as an automatic system. This is a significant advantage of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

    Field of the Invention
  • The present invention relates to the field of data bases and data sets queries. More particularly, the invention relates to boosting large and/or ongoing data queries utilizing one or more central processing units and one or more hardware that include hundreds of cores, such as graphical processing units.
  • Background of the Invention
  • A typical database/data set is an organized collection of data for one or more uses, in digital form. In recent years databases have become essential ingredients in almost every system. Digital databases are managed using a Database Management System (DBMS). The DBMS is a software which operates a database by providing retrieval (query) services, manipulation and update services, management and administration services, storage, access, security, backup and other features. Typically, a DBMS is categorized based on the database model it supports, such as relational or eXtensible Markup Language (XML), the type of computer it supports, such as a server cluster or a mobile phone, the storage sets it uses, the memory type it uses, such as in-memory databases flash memory databases, the query language that accesses the database, such as Structured Query Language (SQL) or XQuery or No-SQL query protocols or other data query protocols. Several known DBMSs cover more than one entry in these categories, commonly, supporting multiple query languages.
  • A Query language is a high-level language which is specifically designed to handle the interactions with a database. The database queries are constructed using a query language, and are then used to access and get necessary information from the database. More specifically, a database query is a piece of code which is sent to a Central Processing Unit (CPU) for the purpose of retrieving information from the database. In other terms, a database "query" is a standard database "question" asked from the DBMS by a third party, namely, application that uses the DBMS. The result of the query is the retrieved information which is returned by the DBMS.
  • In recent years, companies invest a huge amount of time and money in order to improve their software and hardware performances, particularly in the manner by which they efficiently manage their databases. Performance improvement is the concept of modifying a particular process or system to increase its efficiency. In DBMS, performance improvement reduces the query time, and therefore, anticipated results are received faster. For many commercial applications (for example, Algo-Trading, Complex Event Processing (CEP), Reporting and BI (Business Inteligence) etc.) receiving query results fast is a crucial factor in their operability. Generally, a 50 to 100 percent improvement in the performance is considered a very significant improvement.
  • Parallel processing is the ability to carry out multiple operations or tasks simultaneously. One of the most common ways to achieve performance improvement is to employ parallel processing while executing a query. Parallel queries allow breaking a single query into multiple subtasks and executing them on multiple general-purpose Central Processing Units (CPUs) in a multiprocessors computer. While such manner of operation increases speed it requires more resources, suffers excessive power consumption, and occupies a large storage space.
  • Parallel processing of queries is common in the art, and such parallel processing is obtained by the handling of queries by several CPUs, typically, each having multiple cores (core is an instruction processing unit).
  • Moore's law describes a long-term trend in the history of computing hardware. The number of transistors that can be placed inexpensively on an Integrated Circuit (IC) is doubled approximately every two years. The capabilities of many digital electronic devices are strongly linked to Moore's law, e.g., processing speed, memory capacity, sensors and even the number and size of pixels in digital cameras. All of these are improving at (roughly) exponential rates as well. The hardware limitation accurately described by Moor's law dictates a limitation over the number of CPUs that may participate in a parallel query. Parallel queries utilizing CPUs are also limited by the relatively low number of cores in each CPU.
  • A Graphics Processing Unit (GPU), also known as a Visual Processing Unit (VPU) is a specialized microprocessor that offloads and accelerates 3D or 2D graphics rendering from the microprocessor (i.e., CPU). More specifically, the GPU has been particularly designed to process graphics and streams for visual aspects (such as movies). It is used in embedded systems, mobile phones, personal computers, workstations, and game consoles. Modern GPUs which comprise hundreds of cores that operate in parallel are very efficient in manipulating computer graphics, and their highly parallel structure makes them more effective than general-purpose CPUs for a range of complex algorithms. More than 90% of new desktop and notebook computers have integrated GPUs. However, GPUs are usually designed to operate with a unique and limited input structure known as "stream", but they can also operate in in other common paradigms. Stream processing typically allows high throughput and high latency processing. The GPU is typically connected through a PCI bus or its derivatives, for example, a PCIe bus. Still, there are GPUs that are provided within the CPU die (typically call on-die GPU), such as AMD Fusion, or Intel GMA. Furthermore, Intel recently introduce the KNIGHTS-FERRY/CORNER, which is a processor based on MIC (Many Inregrated Cores) architecture, and which is connected to a PCI bus. Although the KNIGHTS-FERRY/CORNER is specifically designed for stram processing, still it contains hundreds of cores, and it is capable of handling large amount of simultaneously running threads. Hereinafter, the term MCP (Multi Core Processor) refers to all the above versions of GPUs, and to other multi core processing units that are connected to the PCI bus, or multiple of such MCPs distributed on the network and connected by MPI (Message Passing Interface) or any other protocol that connects machines on the network.
  • Stream processing is a computer programming paradigm, which allows some applications to more easily exploit a limited form of parallel processing. Such applications can use multiple computational units, such as the floating point units on a GPU, or the Field Programmable Gate Arrays (FPGAs), without explicitly managing allocation, synchronization, or communication among those units. The stream processing paradigm simplifies parallel software and hardware by restricting the parallel computation which is performed. Given a set of data having a stream format, a series of operations is applied to each element in the stream.
  • In graphical operations requiring massive vector operations, stream processing yields several orders of magnitude faster performance than a general-purpose CPU. Stream processing is essentially a compromise, driven by a data-centric model that works very well for traditional GPU-type applications (such as image, video and digital signal processing) but less so for general-purpose CPUs with more randomized data access (such as databases). By sacrificing flexibility, GPUs allow easier, faster and more efficient execution. As noted, a typical GPU comprises several hundreds of cores, and therefore the parallel operation of the GPU is significantly accelerated for those applications that are adapted to operate in a stream structure. Unfortunately, thus far there are many applications that are not adapted for operation on GPU, and one of these applications is the processing of database queries. Therefore, thus far database queries can operate in parallel only with CPUs, which as said employs at most very few cores in parallel. Database query parallel execution which uses a GPU could not be performed thus far, and as a result, obviously the advantages of using hundreds of cores in parallel could not be obtained.
  • There have been tries by the art to provide SQL like data processing on GPUs. The main drawbacks of all said previous tries are (a) they require a separate off-line data storage, in addition to the main data storage, such as they require a separate copy of the data stored in the MSSQL Server. This is a very significant drawback. The maintaining of two separate databases very disadvantageous in terms of speed, because the synchronization between the two databases imposes very sever CPU and network usage, and typically during such a synchronization, the DBMS is prevented from serving the users. More specifically, such an operation prevents working on real time data (OLAP - On Line Analytical Processing). The advantage of the present invention approach will become clear in the explanation relating to the virtual machine and compiler actions; (b) the lack of non intrusiveness operation; (c) the lack of non invasiveness operation; (d) the proposed algorithms do not cover all standard SQL operators;
  • In the context of the present invention, the term "non intrusive" means that the system of the present invention does not require changes in the conventional third party applications, specifically, application code, application architecture, application database structure, methodology of writing the application code and design, etc. The term "automatic" means that the system automatically adapts its operation to the architecture and database of the third party application, architecture and type of the server database, and typically there is no need to manually change the technology code to do it.
  • The following prior art publications describe such prior art tries to perform SQL primitives on a GPU. All said publications suffer from the abovementioned drawbacks:
    1. 1. Bakkum et al, Accelerating SQL Database Operations on a GPU with CUDA, GPGPU-3 March 14, 2010, Pittsburg, PA, USA;
    2. 2. Tsakalozos et al, Using the Graphics Processor Unit to RealizeData Streaming Operations, MDS'09, November 30, 2009 Urbana Champaign, Illinois, USA;
    3. 3. Volk et al, GPUBased Speculative Query Processing for Database Operations, (http://www.vldb.org/archives/workshop/2010/proceedings/files/vldb 2 010 workshop/ADMS 2010/adms10-volk.pdf).
  • Engineers continue to search for new ways to design CPUs that settle a little quicker or use slightly less energy per transition, pushing back those limits, producing new CPUs that can run at slightly higher clock rates. However, recent years improvements, hardly satisfies the speed requirements for receiving results from queries over large databases.
  • Open Computing Language (OpenCL) is a framework for writing programs that execute across heterogeneous platforms consisting of CPUs, GPUs, and other processors. OpenCL includes a language for writing kernels (functions that execute on OpenCL devices), plus APIs that are used to define and control the platforms. OpenCL provides parallel computing using task-based and data-based parallelism. OpenCL enables any application to access a GPU even for a non-graphical computing. Thus, OpenCL extends the power of the GPU beyond graphics, enabling general-purpose computing on a GPU having plurality of cores. For the sake of brevity, the application refers herein to an OpenCL. The term OpenCL, when refers herein relates to the OpenCL or Cuda or Microsoft C++AMP language and their derivatives, for example, libraries like Thrust, Cudapp, Oclpp, etc. Moreover, the term "OpenCL" refers herein to any framework or programming language for working with parallel computational hardware connected through a PCI bus (like NVIDIA/ATI GPUs or Intel Knights Ferry/Knights Corner or Intel's next generations. Therefore, hereinafter, for the sake of brevity reference in the description is made to "OpenCL". However, this term in this description refers to any platform which is capable of carrying out processing over both one or more CPUs and one or more MCPs, for example, Nvidia's CUDA, Microsoft's C++AMP and their derivatives: Thrust, oclpp, cudapp, etc.
  • It is therefore an object of the present invention to provide a system which is adapted to query a dataset, by simultaneously utilizing a central processing unit (CPU) - which typically applies several cores in parallel, and a Multi Core Processor (MCP) - which typically applies hundreds of cores in parallel.
  • It is another object of the present invention to boost performance in large queries for databases and for data sets that are not residing on DBMS, such as any type/format of SGML/XML object, any type/format of text data objects, propriety and binary data objects, No-SQL and alike data sets, Search engines like Lucene.
  • It is still another object of the present invention to provide a system in which the throughput of DBMS is significantly increased in terms of queries per hour and/or per specific query
  • It is another object of the present invention to provide a system for querying a database which is an add-on, and low cost, and which is based on a heterogeneous platform (CPU plus any MCP hardware connected to PCI bus).
  • It is another object of the present invention to increase the efficiency of querying a database in terms of time, power, volume, and hardware resources allocation.
  • It is still another object of the present invention to provide the above system, which may be formed as a non-intrusive and non-invasive, that does not require changing the way that a database consuming application was written, is written or will be written.
  • It is still another object of the present invention to provide a database querying system which operates in parallel with both one or more CPUs, and one or more MCPs.
  • Other objects and advantages of the invention will become apparent as the description proceeds.
  • Summary of the Invention
  • The invention relates to a system for parallel execution of database queries over one or more Central Processing Units (CPUs), and one or more Multi Core Processors, (MCPs), the system comprises: (a) a query analyzer for receiving a query, dividing the query to plurality of sub-queries, and for computing and assigning to each sub-query a target address of either a CPU of a MCP, whichever is more efficient for executing said sub-query; (b) a query compiler for receiving said sub-queries from said query analyzer, creating an Abstract Syntax Tree (AST) and OpenCL primitives only for those sub-queries that are targeted to an MCP, and for conveying both the remaining sub-queries, and the AST and the OpenCL code to a virtual machine; and (A) Virtual Machine (VM) which comprises: (c.1) a task bank for containing said received sub-queries that are targeted to one or more CPUs for DBMS execution, and said received primitives that are targeted to said one or more MCPs; (c.2) one or more buffers for containing data resulting from sub-queries executions by said one or more CPUs; and (c.3) a scheduler for coordinating said primitive execution at the one or more MCPs, depending on data readiness in said one or more buffers as a result of said sub-queries execution by the one or more CPUs; wherein said virtual machine also combines said sub-query results by the CPUs and said primitive results by said MCPs to a final query result.
  • Preferably, the system further comprises a query interceptor for intercepting a query, and for conveying the query to said analyzer.
  • Preferably, the interceptor is located within the DBMS or is external to said DBMS.
  • Preferably, the system further comprises an analyzer database, said analyzer database is in communication with said analyzer, and containing data for assisting the analyzer in the assigning of said target addresses to said sub-queries.
  • Preferably, the data which is stored in said analyzer database contains indexes, columnar statistics, and distributions.
  • Preferably, the data readiness in said one or more buffers is the case when a buffer for specific query becomes full of data from the DBMS, or when the DBMS has completed its transfer of data to said buffer
  • Preferably, the system further comprises a pre-compiled cache for storing MCP primitives that have already been compiled during previous runs, thereby saving compilation time by the query compiler.
  • Preferably, the system further comprises a Hardware Abstraction Layer (HAL) for monitoring operation of all said MCPs and their various cores, determining those that are is available for performing new tasks, and reporting observations results to said query analyzer.
  • The invention further relates to a method for the parallel execution of database queries over one or more Central Processing Units (CPUs), and one or more Multi Core Processors, (MCPs), the method comprises: (a) receiving a query; (b) dividing the query to plurality of sub-queries, and computing and assigning to each sub-query a target address of either a CPU of a MCP, whichever is more efficient for executing said sub-query; (c) creating from said plurality of sub-queries an Abstract Syntax Tree (AST) and OpenCL primitives only for those sub-queries that are targeted to an MCP, and conveying both the remaining sub-queries, and the AST and the OpenCL code to a virtual machine; and (d) storing within a task bank said sub-queries that are targeted to one or more CPUs for DBMS execution, and said received primitives that are targeted to said one or more MCPs; (e) providing one or more buffers for containing data resulting from sub-queries executions by said one or more CPUs; (f) coordinating the execution of said primitives at the one or more MCPs, depending on data readiness in said one or more buffers, as a result of said sub-queries execution at the one or more CPUs; and (g) combining said sub-query results by the CPUs and said primitives results by said MCPs to a final query result.
  • Brief Description of the Drawings
  • In the drawings:
    • Fig. 1a illustrates in a block diagram form the general structure of the system of the present invention;
    • Fig. 1b illustrates in slightly more details the structure of the system of Fig. 1a; and
    • Fig. 2 illustrates in block diagram form the structure of the virtual machine of the system of the present invention;
    Detailed Description of Preferred Embodiments
  • In the following description, for the purpose of illustration, numerous specific details are provided. As will be apparent to the skilled person, the invention is not limited to such specific details and the skilled person may devise alternative arrangements that are within the scope of this invention.
  • As previously mentioned, a hardware with many MCPs, e.g., a conventional GPU, high capacity GPU, sets of GPUs, or equivalent hardware which typically operates over hundreds of cores in parallel can provide an extremely fast processing for specific operations, particularly, but not limiting, those having a stream structure. However, thus far queries for databases could not be provided on MCPs without modifying the applications, namely, are intrusive, and as a result, queries for databases were limited to operate only with CPUs, that are typically limited to include very few cores.
  • The present invention is utilized by an application from the group of: BI (Business Intelligence), Reporting, DW (Data Warehouse), Logistics Systems, Weather Forecasting, sensor Networks with Wireless Sensor Networks as a private case, Cloud Application Services, Algo-trading, MRI Systems, Gaming Systems, Flight Control Systems, Resource Allocation Systems, Algorithmic Optimization Systems, ERP, SCM, CRM, Big-Data applications, Social Network Applications, etc.
  • The present invention overcomes the abovementioned limitations. More specifically, it is adapted to boost performance in large queries for databases and for data sets that are not residing on DBMS databases (e.g., data sets coming from MRI machines, weather sensors, traffic sensors, large sensor networks, any XML type/format data object, proprietary and binary types/formats data object, and text type/format data object, No-SQL datasets, etc). The present invention is adapted to enable parallel execution of queries over databases or large data sets operating one or more CPUs (which typically includes a few cores) and hardware with many (for example, hundreds) computational units. In this embodiment the hardware with many computational units is an MCP, however, equivalent hardware may be used. The invention is advantageous, as it can be provided as an add-on module of software which does not require any software or hardware modification to the conventional architecture of the DBMS and its associated application. The present invention is provided as a middleware module between the DBMS and the one or more CPUs and one or more MCPs.
  • All the queries that are typically provided in the prior art systems from the DBMS or the application to one or more CPUs are now analyzed and manipulated by the add-on module of the present invention, resulting in newly formatted sub-queries that are then distributed for parallel execution by the CPU and MCP. The module of the present invention analyzes each query, converts it to plurality of corresponding sub-queries, and assigns to each sub-query an address of a CPU or an MCP which is most appropriate in terms of efficiency of operation (time, power, and parallel processing). It has been found that utilizing the add-on module of the present invention (i.e., which utilizes a CPU and MCP in parallel) can provide query execution even 10 times faster (i.e., 1000 percent improvement in the performance) in comparison with the prior art structure which utilizes a CPU only.
  • Fig. 1a is a block diagram illustrating the structure of the module 100 of the present invention. The input to the system is a query process request 101 from the user. The query process request arrives at the query interceptor 115, which prevents the query execution in the conventional manner. The query interceptor 115 may be positioned within the DBMS, or before the DBMS. The intercepted query is then conveyed to query analyzer 102. In a first step, query analyzer 102 performs segmentation of the query, resulting in a list of several sub-queries 103, according to a query execution plan (QEP). The QEP is either provided by the DBMS or is generated by the query analyzer 102. When the query analyzer 102 generates the QEP, it uses its own analyzer database 106 to create the QEP. In a second step, query analyzer 102 computes a target value for each sub-query on said list. The target value is later used for addressing each specific sub-query to an appropriate processing unit, either CPU 104 or MCP 105.
  • The query compiler 107 accepts the list of sub-queries and the execution addresses from the query analyzer 102. The query compiler 120 forms an Abstract Syntax Tree (AST) only for the sub-queries that are targeted to the MCP 105. The AST contains all primitives that should be run on data provided by the DBMS to complete the query. The Query compiler 107 generates the code for primitives in the AST in OpenCL (or equivalent) format and uses an external compiler (NVCC, MSVC, GCC etc) to package them in a DLL or another library format capable for run time execution. After compiling the primitives to an executable form, the compiler conveys the execution tree (the execution tree is a special form of the AST which not only contains representation that orders commands/instructions to be executed on the MCP, but it also contains pointers to an executable code which is inserted by the query compiler 107 to the AST). This tree reveals to the virtual machine 120 dependencies between routines/primitives or various query parts. Each node in the tree contains information regarding the executable code to run, i.e., its name, location, input and output parameters). One function of the compiler 107 is to insert pointers to executable code to the AST in order to use different executable functions for one MCP primitive, depending on the data.
  • Example 1: "SELECT * FROM T1 ORDER BY T1.a"
    Assuming T1.a has a string (char[N], varchar, etc.) type it may be preferred to use a bitonic sort on this string. Assuming T1.a has a float type, it may be preferred to use lexicographical sort. The decision is made based on run-time observations of performance (it depends on data which is operated and MCP on the type (single GPU, multiple GPUs, Knights Ferry/Corner, etc.).
  • The virtual machine (VM) 120 receives the execution tree from query compiler 107. As noted above, the execution tree is constructed from both SQL sub queries intended for solely execution by the CPU 104 on the DBMS, and executable code created by query compiler 107 through AST for solely execution on the MCP 106. The VM 120 inserts this execution tree to a task bank (shown in Fig. 2). The task bank enables both in-order and out-of-order execution of primitives and DBMS sub-queries. The task bank now contains sub-queries for DBMS execution by the CPU 104, and those primitives that have been compiled by compiler 107 for execution by the MCP 105. Each compiled MCP primitive within the task bank works on data which is provided to him by a corresponding sub-query, which is in turn executed by the CPU 104. Therefore, each MCP primitive is essentially triggered by data which arrives from the DBMS by CPU 104. The VM 120 manages pre-allocated RAM buffers, each of those buffers may optionally be defined as a non-swappable and/or a write-combined memory region. At the moment that the data within the buffer is ready for a specific sub query, the MCP 105 begins to run the primitives from the task bank (shown in Fig. 2). A scheduler of the VM (also shown in Fig. 2) coordinates the primitive execution by the MCP 105, depending on the data readiness in the buffer. Once the results at the MCP 105 are ready, they are sent to a temporal results cache (shown in Fig. 2). The MCP 105 may still perform primitives on these results at the cache (if and whenever necessary). Upon readiness of the results, they are sent to the user.
  • Fig. 1b describes in slightly more details the structure of the system of Fig. 1a. The system further comprises a pre-compiled cache 127, which stores all the MCP primitives that have already been compiled during previous runs. In such a manner, when a new MCP primitive arrives from the analyzer 102, the query compiler checks within the pre-compiled cache whether it contains an already compiled same primitive. If so, the compiled primitive is directly returned to the compiler, and embedded within the execution tree with no need for compilation. The system further comprises a Hardware Abstraction Layer (HAL) 126. The HAL monitors all the MCPs and its various cores, and determines which of them is available for performing new tasks from the task bank. The HAL reports its observations to query analyzer 102, to enable it to decide if the query should go to the CPU 104 or to the MCP 105. For example, if the HAL reports that all the MCPs are busy, the query analyzer 102 forwards the execution to the CPU 104 in a form of sub-query. In addition, the HAL reports to the virtual machine 120 about availability of MCP units to enable it to forward tasks from its task bank to an available MCP.
  • Interceptor 115 may be either internal or external to the DBMS. When the interceptor is internal, it catches the query by using its own DBMS driver (for example, OLEDB, or ODBC). When it is external, it allows the user to define its query as an argument to a stored procedure within the DBMS, or any other predefined function. As a result, the function or the procedure forwards the query to the query analyzer 102.
  • As mentioned, the query analyzer 102 decides whether the query should be performed by a CPU, a MCP or both. The query analyzer 102 comprises its own analyzer 106 database for estimating the query result-set size. The query analyzer may break the query to separate parts (sub-queries and MCP primitives) and assigns a target (CPU 104 or MCP 105) to each of them. It should be noted again that if the part of the query is found suitable for the CPU 104, it would be executed within the DBMS. In another option, the query analyzer 102 may request a query execution plan (QEP) from the DBMS and after parsing the QEP, it could decide what part of the query should be targeted to the CPU, and which part to the MCP.
  • Example 2: "select * from employees where salary < 3000 order by salary", assuming salary is not the key and the analyzer database contains a histogram of, for example, 1000 bars, each bar is the amount of rows in a table with salary between the bar's boundaries. The result-set size can be estimated at a very high speed given the fact that running of 1000 threads simultaneously for each histogram is not at all a problem for an MCP. Each column in the table has the statistics stored in the abovementioned bars, and in the case there is an AND operator between two columns, the system simply chooses a minimal number of rows from the two columns. In case the there is an OR between the two columns, the system sums up the results to obtain the estimated size. This size is used by the VM to allocate buffers in the memory of the MCP or within a RAM.
  • Example 3: a processing operation which is not supported by the MCP, is targeted to the CPU, a 'JOIN' operation over large databases which is expected to yield a large result (i.e., a result having a large number of elements), is targeted to the MCP, a 'select for update' operation which normally does not require much processing, is typically targeted to the CPU. If the query is simple, or contains DDL statements (e.g., insert, update, delete) it is sent directly to DBMS and executed in a regular manner (as all queries are executed without employing the present invention).
  • Analyzer database 106 stores in general database indexes, columnar statistics, distributions and optionally other data.
  • As mentioned, the query compiler 107 receives a query, and in turn forms an AST from it. The AST contains all the primitives that should run on data which is provided by the DBMS to complete the query. After preparation of the AST, (each node of the AST contains MCP one or more primitives) the compiler finds those MCP primitives that are ready within the pre-compiled cache 127, and inserts pointers to them within the AST. If the a primitive are not found in the pre-compiled cache 127, the compiler generates for it the code in OpenCL or equivalent, and saves it in precompiled cache 127 in a form of dll or any other format that enables run-time execution.
  • Fig. 2 illustrates in block diagram form the structure of the virtual machine 120. After compiling the MCP primitives to an executable tree, the compiler 107 sends the execution tree 210 to the task bank 201. The task bank 201 enables out-of-order execution of primitives. Each primitive is triggered by sub-query signal to the scheduler 202 when one of the events occurs: either at the moment when the buffer 203i for a specific query becomes full of data from the DBMS, or when the DBMS has completed its transfer of data to a buffer. Buffers could be filled by executing a sub-query as a usual SQL query or by executing run-time library in the form of DLL or CLR or another run-time execution format. The scheduler 202 is responsible for the execution of the triggered primitives. The scheduler 202 may execute the pre-compiled code directly 205 or indirectly 206 by passing through linker 204 thereby enabling simultaneous execution of several primitives. The MCP is allocated by HAL 126 (see Fig. lb).
  • As shown, the system of the present invention allows a significant increase of throughput in terms of "queries per hour". As also shown, the present invention does not require modification of the applications that transfer the query to the DBMS, and the DBMS is not required to modify its normal behavior in view of the existence of the MCP.
  • The following description provides still additional examples of cases in which querying by utilizing the structure of the present invention significantly reduces the query processing time.
  • Example 4 discloses a join operation over two large tables, namely, table 1, and table 2. This example is taken from a Business Intelligence (BI) application: Table 1: Items Sales
    Product Sales
    TVset 20
    Laptop 30
    Ferrari (Car) 0
    Table 2: Items Price
    Product Price ($)
    TVset 2
    Laptop 3
    Ferrari (Car) 1,000,000,000
  • In example 4, the task of the system of the present invention is to calculate the amount of money earned. Since it is assumed that the tables are not indexed, one possible optimization is to pre-sort the tables before a JOIN. The query for calculating the money earned is the multiplication of the number of items sold by their price. Thus, the query is:
    "SELECT Price*Sales FROM table1, table2 WHERE table1.Product = table2.Product"
  • During the query, a JOIN algorithm is executed on table 1 and table 2. The execution of the JOIN over both a CPU 104 and an MCP 105, as in the present invention, yields a faster processing compared to performance of same execution by a DBMS over a CPU only. It should be noted that the example above discuss, for the sake of brevity, very small tables. However, in practice the tables are much larger by many orders, and the difference in processing time becomes very significant. In this example there is no need to issue any sub-query and the whole query is converted to MCP primitives performing JOIN. In the case of the following query:
    "SELECT Price*Sales FROM table1, table2 WHERE table1.Product = table2.Product AND Sales > 20" there is an additional constraint "Sales > 20" This filter operation ("where Sales > 20") is clearly IO bounded and it can be performed on a CPU. Thus the sub-queries to get data from DBMS are:
    1. 1) "SELECT Product, Price FROM table1"
    2. 2) "SELECT Product, PriceFROM table2 WHERE Sales > 20"
    The data from these two queries flow to buffers inside the VM 120. when the buffers become full or all the respective data from the DBMS are transferred to the VM buffers, the scheduler of the VM triggers the execution of MCP primitive JOIN (in this case) on an MCP unit.
  • Example 5: This example demonstrates the improvement in query results as obtained by utilizing the present invention. In this example a medical device MRI generates a stream of images. The images are stored in a conventional DBMS. The system of the present invention receives a query from a doctor which examines the patient's images. The doctor seeks for images in the DBMS in which there are areas in the patient's bone density which is lower then normal. The query of the doctor is transferred to system which in turn generates a continuous stream of images with areas marked as suspicious. The doctor's query is therefore executed over the images, yielding much faster results, as the query is executed over both an MCP and a CPU, compared to the traditional methods where the query is performed over a CPU only. Bone density and other medical parameters can be calculated by the use of image processing algorithms. This kind of algorithms performs very fast on GPUs (a private case of an MCP). It is possible to pass the images (assuming that they are stored in DBMS) for processing on GPUs via the system in present invention.
  • Example 6 describes the present invention work with a query execution plan from DBMS. A query execution plan is requested in the following example:
    "SELECT employees.status, salary_data.salary FROM employees, salary_data WHERE employees.name = salary_data.name", (it is assumed that name is not the primary key). In this example, a JOIN occurs between two tables, and it is required to know which table to loop. For example, given that employees table contains 1000 rows, and salary_data only 10 rows, the join must loop on salary_data table (it will take only 10 iterations to complete the JOIN). The Linker 120 of the VM compacts several MCP primitives to one primitive, and sends it to execution.
  • Example 7: assume 2 queries are submitted
    1. 1) "SELECT * FROM T1 WHERE T1.a < 5 ORDER BY T1.a"
    2. 2) "SELECT * FROM T2 WHERE T2.b < 55 ORDER BY T2.b"
    Given the fact that MCP primitives are still in the task bank, they can be fused to on the execution unit through the linker, and executed together.
  • The system of the present invention, as demonstrated above, can be provided as a non intrusive system and as an automatic system. This is a significant advantage of the present invention.
  • The above examples and description have been provided only for the purpose of illustration, and are not intended to limit the invention in any way. As will be appreciated by the skilled person, the invention can be carried out in a great variety of ways, employing more than one technique from those described above, all without exceeding the scope of the invention.

Claims (8)

  1. A non-intrusive add-on system for parallel execution of database queries over one or more Central Processing Units (CPUs), and one or more Multi Core Processors (MCPs), the system comprising:
    a) a query analyzer for receiving a query and creating a plurality of sub queries by analyzing the query operations type, according to a query plan received from the DBMS, said sub-queries being executed by the DBMS, and for computing and assigning to each sub-query a target address of either a DBMS on CPUs execution, or on MCPs execution, whichever is more efficient in terms of time or power required for executing said sub-query;
    b) a query compiler for receiving said sub-queries from said query analyzer, creating an Abstract Syntax Tree (AST) and OpenCL primitives only for those sub-queries that are targeted to an MCP, and for conveying both the remaining sub-queries, and the AST and the OpenCL code to a virtual machine; and
    c) a Virtual Machine (VM) which comprises:
    c1) a task bank for containing said received sub-queries that are targeted to DBMS execution, and said received primitives that are targeted to said one or more MCPs;
    c2) one or more buffers for containing data resulting from sub-queries executions by said one or more CPUs; and
    c3) a scheduler for coordinating said primitive execution at the one or more MCPs, depending on data readiness in said one or more buffers as a result of said sub-queries execution by the one or more CPUs; and
    D) a Hardware Abstraction Layer (HAL) for monitoring operation of all said MCPs and their various cores, determining those that are available for performing new tasks, and reporting observations results to said query analyzer;
    wherein said VM also combines said sub-query results by the DBMS and said primitive results by said MCPs to a final query result;
    wherein the query analyzer decides if the query should go to the CPU or to the MCP based on HAL observation results and the query plan.
  2. The system according to claim 1, further comprising a query interceptor for intercepting a query, and conveying the query to said analyzer.
  3. The system according to claim 1, further comprising an analyzer database, said analyzer database being in communication with said analyzer, and containing data for assisting the analyzer in the assigning of said target addresses to said sub-queries.
  4. The system according to claim 3, wherein the data which is stored in said analyzer database contains indexes, columnar statistics, and distributions.
  5. The system according to claim 1, wherein the data readiness in said one or more buffers is the case when a buffer for specific query becomes full of data from the DBMS, or when the DBMS has completed its transfer of data to said buffer.
  6. The system according to claim 1, further comprising a pre-compiled cache for storing MCP primitives that have already been compiled during previous runs, thereby saving compilation time by the query compiler.
  7. The system according to claim 1, wherein said determination at the Hardware Abstraction Layer (HAL) is made each time when one of said buffers becomes full of data from the DBMS.
  8. A non-intrusive method for the parallel execution of DBMS queries over one or more Central Processing Units (CPUs), and one or more Multi Core Processors, (MCPs), the method comprising:
    a) receiving a query;
    b) creating a plurality of sub queries, by analyzing the query operations type, according to a query plan received from the DBMS, said sub-queries adapted to DBMS query format, each sub-query containing multiple operators, and computing and assigning to each sub-query a target address of either a DBMS over CPU or over an MCP, whichever is more efficient in terms of time or power required, for executing said sub-query;
    c) creating from said plurality of sub-queries an Abstract Syntax Tree (AST) and OpenCL primitives only for those sub-queries that are targeted to an MCP, and conveying both the remaining sub-queries, and the AST and the OpenCL code to a virtual machine; and
    d) storing within a task bank said sub-queries that are targeted to one or more CPUs for DBMS execution, and said received primitives that are targeted to said one or more MCPs;
    e) providing one or more buffers for containing data resulting from sub-queries executions by said DBMS;
    f) monitoring operation of all said MCPs and their various cores, determining those that are available for performing new tasks,
    g) coordinating the execution of said primitives at the one or more MCPs, or CPUs depending on data readiness in said one or more buffers, as a result of said sub-queries execution at the DBMS and availability of said MCPs; and
    h) combining said sub-query results by the DBMS and said primitives results by said MCPs to a final query result.
EP11819514.8A 2010-07-21 2011-07-18 A system and method for the parallel execution of database queries over cpus and multi core processors Active EP2596430B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US36617910P 2010-07-21 2010-07-21
PCT/IL2011/000565 WO2012025915A1 (en) 2010-07-21 2011-07-18 A system and method for the parallel execution of database queries over cpus and multi core processors

Publications (3)

Publication Number Publication Date
EP2596430A1 EP2596430A1 (en) 2013-05-29
EP2596430A4 EP2596430A4 (en) 2015-11-11
EP2596430B1 true EP2596430B1 (en) 2019-06-19

Family

ID=45722977

Family Applications (1)

Application Number Title Priority Date Filing Date
EP11819514.8A Active EP2596430B1 (en) 2010-07-21 2011-07-18 A system and method for the parallel execution of database queries over cpus and multi core processors

Country Status (4)

Country Link
US (1) US9298768B2 (en)
EP (1) EP2596430B1 (en)
IL (1) IL224255A (en)
WO (1) WO2012025915A1 (en)

Families Citing this family (130)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101332840B1 (en) * 2012-01-05 2013-11-27 서울대학교산학협력단 Cluster system, Host node, Computing node, and application execution method based on parallel computing framework
US7880761B2 (en) 2005-07-20 2011-02-01 Lab Partners Associates, Inc. Wireless photographic communication system and method
US7840537B2 (en) 2006-12-22 2010-11-23 Commvault Systems, Inc. System and method for storing redundant information
US8930331B2 (en) 2007-02-21 2015-01-06 Palantir Technologies Providing unique views of data based on changes or rules
EP2162792A4 (en) 2007-05-29 2011-08-24 Lab Partners Associates Inc System and method for maintaining hot shoe communications between a camera and a wireless device
US8429194B2 (en) 2008-09-15 2013-04-23 Palantir Technologies, Inc. Document-based workflows
US8401996B2 (en) 2009-03-30 2013-03-19 Commvault Systems, Inc. Storing a variable number of instances of data objects
US8578120B2 (en) 2009-05-22 2013-11-05 Commvault Systems, Inc. Block-level single instancing
US8634302B2 (en) * 2010-07-30 2014-01-21 Alcatel Lucent Apparatus for multi-cell support in a network
WO2012045023A2 (en) 2010-09-30 2012-04-05 Commvault Systems, Inc. Archiving data objects using secondary copies
US8737417B2 (en) 2010-11-12 2014-05-27 Alcatel Lucent Lock-less and zero copy messaging scheme for telecommunication network applications
US8730790B2 (en) 2010-11-19 2014-05-20 Alcatel Lucent Method and system for cell recovery in telecommunication networks
US8861434B2 (en) 2010-11-29 2014-10-14 Alcatel Lucent Method and system for improved multi-cell support on a single modem board
US8762972B2 (en) * 2011-02-08 2014-06-24 Nokia Corporation Methods and apparatuses for facilitating execution of applications requiring runtime compilation
US9547693B1 (en) 2011-06-23 2017-01-17 Palantir Technologies Inc. Periodic database search manager for multiple data sources
US9092482B2 (en) 2013-03-14 2015-07-28 Palantir Technologies, Inc. Fair scheduling for mixed-query loads
US8799240B2 (en) 2011-06-23 2014-08-05 Palantir Technologies, Inc. System and method for investigating large amounts of data
US9357482B2 (en) 2011-07-13 2016-05-31 Alcatel Lucent Method and system for dynamic power control for base stations
US9280532B2 (en) 2011-08-02 2016-03-08 Palantir Technologies, Inc. System and method for accessing rich objects via spreadsheets
US8732574B2 (en) 2011-08-25 2014-05-20 Palantir Technologies, Inc. System and method for parameterizing documents for automatic workflow generation
US8504542B2 (en) 2011-09-02 2013-08-06 Palantir Technologies, Inc. Multi-row transactions
US9069549B2 (en) 2011-10-12 2015-06-30 Google Technology Holdings LLC Machine processor
US20130103931A1 (en) * 2011-10-19 2013-04-25 Motorola Mobility Llc Machine processor
US9348676B2 (en) * 2012-01-05 2016-05-24 Google Technology Holdings LLC System and method of processing buffers in an OpenCL environment
US9448823B2 (en) 2012-01-25 2016-09-20 Google Technology Holdings LLC Provision of a download script
US9020890B2 (en) 2012-03-30 2015-04-28 Commvault Systems, Inc. Smart archiving and data previewing for mobile devices
US9652502B2 (en) * 2012-03-30 2017-05-16 Khalifa University Of Science, Technology And Research Method and system for continuous query processing
US8869122B2 (en) * 2012-08-30 2014-10-21 Sybase, Inc. Extensible executable modeling
WO2014049596A1 (en) * 2012-09-28 2014-04-03 Sqream Technologies Ltd A system and a method for executing sql-like queries with add-on accelerators
US9348677B2 (en) 2012-10-22 2016-05-24 Palantir Technologies Inc. System and method for batch evaluation programs
US8996781B2 (en) * 2012-11-06 2015-03-31 OCZ Storage Solutions Inc. Integrated storage/processing devices, systems and methods for performing big data analytics
US9633022B2 (en) 2012-12-28 2017-04-25 Commvault Systems, Inc. Backup and restoration for a deduplicated file system
US20140214886A1 (en) 2013-01-29 2014-07-31 ParElastic Corporation Adaptive multi-client saas database
WO2014123552A1 (en) * 2013-02-08 2014-08-14 Mellmo Inc. Executing database queries using multiple processors
US8868486B2 (en) 2013-03-15 2014-10-21 Palantir Technologies Inc. Time-sensitive cube
US8909656B2 (en) 2013-03-15 2014-12-09 Palantir Technologies Inc. Filter chains with associated multipath views for exploring large data sets
EP2972840A4 (en) * 2013-03-15 2016-11-02 Hewlett Packard Entpr Dev Lp Co-processor-based array-oriented database processing
US10474679B2 (en) 2013-03-18 2019-11-12 Sqream Technologies Ltd Method for executing queries on streaming data using graphic processing units
US10078683B2 (en) 2013-07-02 2018-09-18 Jpmorgan Chase Bank, N.A. Big data centralized intelligence system
US9116975B2 (en) 2013-10-18 2015-08-25 Palantir Technologies Inc. Systems and user interfaces for dynamic and interactive simultaneous querying of multiple data stores
US9105000B1 (en) 2013-12-10 2015-08-11 Palantir Technologies Inc. Aggregating data from a plurality of data sources
US20150178326A1 (en) * 2013-12-23 2015-06-25 Chevron U.S.A. Inc. Hydrocarbon data management software execution system
US10324897B2 (en) 2014-01-27 2019-06-18 Commvault Systems, Inc. Techniques for serving archived electronic mail
US11809451B2 (en) 2014-02-19 2023-11-07 Snowflake Inc. Caching systems and methods
US8924429B1 (en) 2014-03-18 2014-12-30 Palantir Technologies Inc. Determining and extracting changed data from a data source
US9535974B1 (en) 2014-06-30 2017-01-03 Palantir Technologies Inc. Systems and methods for identifying key phrase clusters within documents
US9619557B2 (en) 2014-06-30 2017-04-11 Palantir Technologies, Inc. Systems and methods for key phrase characterization of documents
US9419992B2 (en) 2014-08-13 2016-08-16 Palantir Technologies Inc. Unwanted tunneling alert system
US9454281B2 (en) 2014-09-03 2016-09-27 Palantir Technologies Inc. System for providing dynamic linked panels in user interface
US9229952B1 (en) 2014-11-05 2016-01-05 Palantir Technologies, Inc. History preserving data pipeline system and method
US9348920B1 (en) 2014-12-22 2016-05-24 Palantir Technologies Inc. Concept indexing among database of documents using machine learning techniques
US10552994B2 (en) 2014-12-22 2020-02-04 Palantir Technologies Inc. Systems and interactive user interfaces for dynamic retrieval, analysis, and triage of data items
US10452651B1 (en) 2014-12-23 2019-10-22 Palantir Technologies Inc. Searching charts
US9817563B1 (en) 2014-12-29 2017-11-14 Palantir Technologies Inc. System and method of generating data points from one or more data stores of data items for chart creation and manipulation
WO2016183552A1 (en) 2015-05-14 2016-11-17 Walleye Software, LLC A memory-efficient computer system for dynamic updating of join processing
US11580472B2 (en) 2015-05-14 2023-02-14 Palantir Technologies Inc. Systems and methods for state machine management
US10324914B2 (en) 2015-05-20 2019-06-18 Commvalut Systems, Inc. Handling user queries against production and archive storage systems, such as for enterprise customers having large and/or numerous files
US9672257B2 (en) 2015-06-05 2017-06-06 Palantir Technologies Inc. Time-series data storage and processing database system
US9384203B1 (en) 2015-06-09 2016-07-05 Palantir Technologies Inc. Systems and methods for indexing and aggregating data records
US9407652B1 (en) 2015-06-26 2016-08-02 Palantir Technologies Inc. Network anomaly detection
US9996595B2 (en) 2015-08-03 2018-06-12 Palantir Technologies, Inc. Providing full data provenance visualization for versioned datasets
US9537880B1 (en) 2015-08-19 2017-01-03 Palantir Technologies Inc. Anomalous network monitoring, user behavior detection and database system
US10445850B2 (en) * 2015-08-26 2019-10-15 Intel Corporation Technologies for offloading network packet processing to a GPU
US9454564B1 (en) 2015-09-09 2016-09-27 Palantir Technologies Inc. Data integrity checks
US9576015B1 (en) 2015-09-09 2017-02-21 Palantir Technologies, Inc. Domain-specific language for dataset transformations
US10176015B2 (en) 2015-09-25 2019-01-08 Microsoft Technology Licensing, Llc Progress visualization of computational job
US10044745B1 (en) 2015-10-12 2018-08-07 Palantir Technologies, Inc. Systems for computer network security risk assessment including user compromise analysis associated with a network of devices
US9798787B1 (en) 2015-12-10 2017-10-24 Palantir Technologies Inc. System and user interfaces for searching resources and related documents using data structures
US9542446B1 (en) 2015-12-17 2017-01-10 Palantir Technologies, Inc. Automatic generation of composite datasets based on hierarchical fields
US10191775B2 (en) * 2015-12-20 2019-01-29 Sqream Technologies Ltd. Method for executing queries on data chunks using graphic processing units
US10726032B2 (en) 2015-12-30 2020-07-28 Palantir Technologies, Inc. Systems and methods for search template generation
US10380522B1 (en) 2015-12-31 2019-08-13 Palantir Technologies Inc. Asset allocation evaluation system
US10832218B1 (en) 2016-04-05 2020-11-10 Palantir Technologies Inc. User interface for visualization of an attrition value
US9811572B2 (en) * 2016-04-06 2017-11-07 InsightSoftware.com International Multi-axis expand/collapse for relational databases
US10007674B2 (en) 2016-06-13 2018-06-26 Palantir Technologies Inc. Data revision control in large-scale data analytic systems
US9753935B1 (en) 2016-08-02 2017-09-05 Palantir Technologies Inc. Time-series data storage and processing database system
US10366084B2 (en) * 2016-09-15 2019-07-30 Microsoft Technology Licensing, Llc Optimizing pipelining result sets with fault tolerance in distributed query execution
US10133588B1 (en) 2016-10-20 2018-11-20 Palantir Technologies Inc. Transforming instructions for collaborative updates
US9805071B1 (en) 2016-11-10 2017-10-31 Palantir Technologies Inc. System and methods for live data migration
US10678793B2 (en) * 2016-11-17 2020-06-09 Sap Se Document store with non-uniform memory access aware high performance query processing
US10318630B1 (en) 2016-11-21 2019-06-11 Palantir Technologies Inc. Analysis of large bodies of textual data
US10423619B2 (en) 2016-11-29 2019-09-24 Sap Se Query plan generation for precompiled and code generating query operations
US10372707B2 (en) 2016-11-29 2019-08-06 Sap Se Query execution pipelining with pump operators
US10733184B2 (en) 2016-11-29 2020-08-04 Sap Se Query planning and execution with source and sink operators
US10521426B2 (en) * 2016-11-29 2019-12-31 Sap Se Query plan generation for split table query operations
US10558661B2 (en) 2016-11-29 2020-02-11 Sap Se Query plan generation based on table adapter
US11016973B2 (en) 2016-11-29 2021-05-25 Sap Se Query plan execution engine
US10885032B2 (en) 2016-11-29 2021-01-05 Sap Se Query execution pipelining with shared states for query operators
US10884875B2 (en) 2016-12-15 2021-01-05 Palantir Technologies Inc. Incremental backup of computer data files
GB201621627D0 (en) 2016-12-19 2017-02-01 Palantir Technologies Inc Task allocation
US10223099B2 (en) 2016-12-21 2019-03-05 Palantir Technologies Inc. Systems and methods for peer-to-peer build sharing
US10776353B2 (en) 2017-01-26 2020-09-15 Sap Se Application programming interface for database access
US10671625B2 (en) 2017-01-26 2020-06-02 Sap Se Processing a query primitive call on a value identifier set
US10860579B2 (en) 2017-01-30 2020-12-08 Sap Se Query planning and execution with reusable memory stack
US10896097B1 (en) 2017-05-25 2021-01-19 Palantir Technologies Inc. Approaches for backup and restoration of integrated databases
GB201708818D0 (en) 2017-06-02 2017-07-19 Palantir Technologies Inc Systems and methods for retrieving and processing data
US10530642B1 (en) 2017-06-07 2020-01-07 Palantir Technologies Inc. Remote configuration of a machine
US10956406B2 (en) 2017-06-12 2021-03-23 Palantir Technologies Inc. Propagated deletion of database records and derived data
US12105716B2 (en) * 2017-06-23 2024-10-01 Xilinx, Inc. Parallel compute offload to database accelerator
CN109426553A (en) * 2017-08-21 2019-03-05 上海寒武纪信息科技有限公司 Task cutting device and method, Task Processing Unit and method, multi-core processor
US10176217B1 (en) 2017-07-06 2019-01-08 Palantir Technologies, Inc. Dynamically performing data processing in a data pipeline system
WO2019018026A1 (en) * 2017-07-20 2019-01-24 University Of South Florida Gpu-based data join
US10839022B1 (en) 2017-07-24 2020-11-17 Palantir Technologies Inc. System to manage document workflows
US10218574B1 (en) 2017-07-26 2019-02-26 Palantir Technologies Inc. Detecting software misconfiguration at a remote machine
US11334552B2 (en) 2017-07-31 2022-05-17 Palantir Technologies Inc. Lightweight redundancy tool for performing transactions
US10324759B1 (en) 2017-08-03 2019-06-18 Palantir Technologies Inc. Apparatus and method of securely and efficiently interfacing with a cloud computing service
US10417224B2 (en) 2017-08-14 2019-09-17 Palantir Technologies Inc. Time series database processing system
US10198469B1 (en) 2017-08-24 2019-02-05 Deephaven Data Labs Llc Computer data system data source refreshing using an update propagation graph having a merged join listener
US10216695B1 (en) 2017-09-21 2019-02-26 Palantir Technologies Inc. Database system for time series data storage, processing, and analysis
US11281726B2 (en) 2017-12-01 2022-03-22 Palantir Technologies Inc. System and methods for faster processor comparisons of visual graph features
US10614069B2 (en) 2017-12-01 2020-04-07 Palantir Technologies Inc. Workflow driven database partitioning
US11016986B2 (en) 2017-12-04 2021-05-25 Palantir Technologies Inc. Query-based time-series data display and processing system
US10754822B1 (en) 2018-04-18 2020-08-25 Palantir Technologies Inc. Systems and methods for ontology migration
GB201807534D0 (en) 2018-05-09 2018-06-20 Palantir Technologies Inc Systems and methods for indexing and searching
CN109522326B (en) * 2018-10-18 2021-06-29 上海达梦数据库有限公司 Data distribution method, device, equipment and storage medium
GB201908091D0 (en) 2019-06-06 2019-07-24 Palantir Technologies Inc Time series databases
CN111767305B (en) * 2020-06-23 2023-04-07 电子科技大学 Self-adaptive database hybrid query method
US11669529B2 (en) 2021-07-13 2023-06-06 Capital One Services, Llc Dynamic query allocation to virtual warehouses
US11494413B1 (en) * 2021-07-13 2022-11-08 Capital One Services, Llc Query alerts generation for virtual warehouse
US11914595B2 (en) 2021-07-13 2024-02-27 Capital One Services, Llc Virtual warehouse query monitoring and reporting
US20230168935A1 (en) * 2021-11-29 2023-06-01 Google Llc Dynamic Strategy Based Parallelization of User Requests
US11392715B1 (en) 2021-12-14 2022-07-19 Capital One Services, Llc Data certification process for cloud database platform
US11392587B1 (en) 2021-12-14 2022-07-19 Capital One Services, Llc Rule generation and data certification onboarding process for cloud database platform
US11829367B2 (en) 2021-12-14 2023-11-28 Capital One Services, Llc Data certification process for updates to data in cloud database platform
US11893020B2 (en) * 2022-01-07 2024-02-06 International Business Machines Corporation Enhancing database query processing
US12236278B2 (en) 2022-02-01 2025-02-25 Capital One Services, Llc Optimization of virtual warehouse computing resource allocation
US20230244687A1 (en) * 2022-02-01 2023-08-03 Capital One Services, Llc Optimization of Virtual Warehouse Computing Resource Allocation
US12210494B2 (en) 2022-06-10 2025-01-28 Capital One Services, Llc Data management ecosystem for databases
US12231431B2 (en) 2022-06-10 2025-02-18 Capital One Services, Llc Internet protocol (IP) whitelisting for signed uniform resource locators (URLS)
US11995084B1 (en) * 2023-10-05 2024-05-28 Timescale, Inc. Database system for querying time-series data stored in a tiered storage using a cloud platform

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5495606A (en) * 1993-11-04 1996-02-27 International Business Machines Corporation System for parallel processing of complex read-only database queries using master and slave central processor complexes
US20050131893A1 (en) 2003-12-15 2005-06-16 Sap Aktiengesellschaft Database early parallelism method and system
US8126870B2 (en) * 2005-03-28 2012-02-28 Sybase, Inc. System and methodology for parallel query optimization using semantic-based partitioning

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
None *

Also Published As

Publication number Publication date
IL224255A (en) 2017-07-31
EP2596430A4 (en) 2015-11-11
US9298768B2 (en) 2016-03-29
US20130117305A1 (en) 2013-05-09
EP2596430A1 (en) 2013-05-29
WO2012025915A1 (en) 2012-03-01
WO2012025915A8 (en) 2012-06-28

Similar Documents

Publication Publication Date Title
EP2596430B1 (en) A system and method for the parallel execution of database queries over cpus and multi core processors
US11238039B2 (en) Materializing internal computations in-memory to improve query performance
US10007698B2 (en) Table parameterized functions in database
EP3329393B1 (en) Materializing expressions within in-memory virtual column units to accelerate analytic queries
US9811561B2 (en) Executing database queries using multiple processors
US7984043B1 (en) System and method for distributed query processing using configuration-independent query plans
Yuan et al. Spark-GPU: An accelerated in-memory data processing engine on clusters
US7908259B2 (en) Hardware accelerated reconfigurable processor for accelerating database operations and queries
CN106687920B (en) Invocation of management tasks
Jindal et al. Magpie: Python at Speed and Scale using Cloud Backends.
US10860579B2 (en) Query planning and execution with reusable memory stack
US20180150515A1 (en) Query Planning and Execution With Source and Sink Operators
US11132366B2 (en) Transforming directed acyclic graph shaped sub plans to enable late materialization
JP2024096728A (en) System and method for dependency analysis in a multidimensional database environment - Patents.com
US10776353B2 (en) Application programming interface for database access
US11941001B2 (en) Optimizing cursor loops in relational database systems using custom aggregates
Terlecki et al. On improving user response times in tableau
US20180150518A1 (en) Query plan execution engine
US20160203409A1 (en) Framework for calculating grouped optimization algorithms within a distributed data store
US10997175B2 (en) Method for predicate evaluation in relational database systems
US12118003B2 (en) On-demand access of database table partitions
Kepe et al. Database Processing-in-Memory: A Vision
Meinke In-memory OLAP aggregation on GPUs using CUDA Dynamic Parallelism

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20130218

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

DAX Request for extension of the european patent (deleted)
RA4 Supplementary search report drawn up and despatched (corrected)

Effective date: 20151013

RIC1 Information provided on ipc code assigned before grant

Ipc: G06F 17/30 20060101ALI20151007BHEP

Ipc: G06F 9/46 20060101AFI20151007BHEP

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE

R17P Request for examination filed (corrected)

Effective date: 20130218

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: EXAMINATION IS IN PROGRESS

17Q First examination report despatched

Effective date: 20170331

GRAP Despatch of communication of intention to grant a patent

Free format text: ORIGINAL CODE: EPIDOSNIGR1

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: GRANT OF PATENT IS INTENDED

INTG Intention to grant announced

Effective date: 20190103

GRAS Grant fee paid

Free format text: ORIGINAL CODE: EPIDOSNIGR3

GRAA (expected) grant

Free format text: ORIGINAL CODE: 0009210

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE PATENT HAS BEEN GRANTED

AK Designated contracting states

Kind code of ref document: B1

Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

REG Reference to a national code

Ref country code: GB

Ref legal event code: FG4D

REG Reference to a national code

Ref country code: CH

Ref legal event code: EP

REG Reference to a national code

Ref country code: IE

Ref legal event code: FG4D

REG Reference to a national code

Ref country code: DE

Ref legal event code: R096

Ref document number: 602011059891

Country of ref document: DE

REG Reference to a national code

Ref country code: AT

Ref legal event code: REF

Ref document number: 1146364

Country of ref document: AT

Kind code of ref document: T

Effective date: 20190715

REG Reference to a national code

Ref country code: CH

Ref legal event code: NV

Representative=s name: DENNEMEYER AG, CH

REG Reference to a national code

Ref country code: NL

Ref legal event code: MP

Effective date: 20190619

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: NO

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190919

Ref country code: LT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: SE

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: HR

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: AL

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: FI

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

REG Reference to a national code

Ref country code: LT

Ref legal event code: MG4D

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: GR

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190920

Ref country code: RS

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: LV

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: BG

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190919

REG Reference to a national code

Ref country code: AT

Ref legal event code: MK05

Ref document number: 1146364

Country of ref document: AT

Kind code of ref document: T

Effective date: 20190619

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: CZ

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: RO

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: SK

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: PT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20191021

Ref country code: NL

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: AT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: EE

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: ES

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: IS

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20191019

Ref country code: SM

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: IT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: MC

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: TR

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

REG Reference to a national code

Ref country code: BE

Ref legal event code: MM

Effective date: 20190731

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: DK

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

Ref country code: PL

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: BE

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20190731

Ref country code: IS

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20200224

Ref country code: LU

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20190718

REG Reference to a national code

Ref country code: DE

Ref legal event code: R097

Ref document number: 602011059891

Country of ref document: DE

PLBE No opposition filed within time limit

Free format text: ORIGINAL CODE: 0009261

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT

PG2D Information on lapse in contracting state deleted

Ref country code: IS

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: IE

Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES

Effective date: 20190718

26N No opposition filed

Effective date: 20200603

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: SI

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: CY

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: HU

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT; INVALID AB INITIO

Effective date: 20110718

Ref country code: MT

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

PG25 Lapsed in a contracting state [announced via postgrant information from national office to epo]

Ref country code: MK

Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT

Effective date: 20190619

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: DE

Payment date: 20240730

Year of fee payment: 14

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: GB

Payment date: 20240730

Year of fee payment: 14

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: FR

Payment date: 20240730

Year of fee payment: 14

PGFP Annual fee paid to national office [announced via postgrant information from national office to epo]

Ref country code: CH

Payment date: 20240809

Year of fee payment: 14