Back to Search
Start Over
Join minimization in XML-to-SQL translation
- Source :
- ACM SIGMOD Record. 35:20-25
- Publication Year :
- 2006
- Publisher :
- Association for Computing Machinery (ACM), 2006.
-
Abstract
- Consider an XML view defined over a relational database, and a user query specified over this view. This user XML query is typically processed using the following steps: (a) our translator maps the XML query to one or more SQL queries, (b) the relational engine translates an SQL query to a relational algebra plan, (c) the relational engine executes the algebra plan and returns SQL results, and (d) our translator translates the SQL results back to XML. However, a straightforward approach produces a relational algebra plan after step (b) that is inefficient and has redundant joins. In this paper, we report on our preliminary observations with respect to how joins in such a relational algebra plan can be minimized. Our approach works on the relational algebra plan and optimizes it using novel rewrite rules that consider pairs of joins in the plan and determine whether one of them is redundant and hence can be removed. Our study shows that algebraic techniques achieve effective join minimization, and such techniques are useful and can be integrated into mainstream SQL engines.
- Subjects :
- Recursive join
Tuple relational calculus
SQL
Theoretical computer science
computer.internet_protocol
Computer science
Relational database
Data definition language
Joins
Relational algebra
computer.software_genre
Query optimization
Language Integrated Query
Query by Example
Stored procedure
computer.programming_language
Programming language
InformationSystems_DATABASEMANAGEMENT
Nested set model
Relational calculus
Null (SQL)
Codd's theorem
Relational model
Sargable
Conjunctive query
Domain relational calculus
computer
Software
XML
Information Systems
Subjects
Details
- ISSN :
- 01635808
- Volume :
- 35
- Database :
- OpenAIRE
- Journal :
- ACM SIGMOD Record
- Accession number :
- edsair.doi...........c7560d465eb2a2e0944d7fd10b8f677f
- Full Text :
- https://doi.org/10.1145/1121995.1121999