Method for realizing optimization of data source extensive makeup language (XML) query system based on sub-queries
A query system and sub-query technology, which is applied in the field of data source XML query system optimization based on sub-queries, can solve problems such as low efficiency, and achieve the effects of wide application range, convenient processing, and stable and reliable work performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 12
[0103] Example 1.2: For query Q and view V in Example 11, when the following view V1 is given:
[0104] Vl:v1(A,B):-p 1 (A,C),p 2 (C,B),p 0 (D,E)
[0105] The following query E is Q based on V and V 1 A complete rewrite of:
[0106] E:q(X,U):-v(X,Z),v 1 (X,U)
[0107] What needs to be explained here is that the entire rewriting process is not performed in a single step, that is, it does not use the view V to rewrite first, and then merge V 1 and the result just now to get the final rewrite of E; use V and V 1 The process of rewriting both views is done in parallel.
[0108] Definition 1.3: Contains mappings. In terms of form, a query Q 1 to another query Q 2 The inclusive map refers to the Q 1 to Q 2 variable mapping such that Q 1 Each basic formula in can be mapped to Q 2 in each of the basic formulas. In fact, to show that Q 1 Contains Q 2 , the containment map should also contain the 1 Query head to Q 2 A map of query headers. But for the convenience of...
example 13
[0118] Example 1.3: For a given query Q: q(X, Y, U, W): -p(X, Y), r(U, W), r(W, U) and a view V: v(A, B , C, D):-p(A, B), r(C, D), C≤D, there is no Q-based conjunction query rewriting that does not introduce new variables.
[0119] However, E:q(X,Y,U,W):-v(X,Y,C,D),r(U,W),r(W,U) is a rewrite of Q based on V. Further, the disjunctive rewriting of Q based on V that does not introduce new variables is:
[0120] Q': q(X, Y, U, W): -v(X, Y, U, W), r(W, U)
[0121] Q': q(X, Y, U, w): -v(X, Y, U, W), r(U, W)
[0122] An important purpose of using views to rewrite queries is to reduce the cost of computing the original query. Therefore, in order to optimize a query, it is not only necessary to find a rewrite of the query, but also to find the minimum rewrite of the query. Next, we discuss how to reduce the number of redundant basic expressions in rewritten queries, and how to find the minimum rewritten method and its complexity. Finally, it is revealed that there are two independ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com