×

Efficient query processing on ordered views

  • US 9,471,630 B2
  • Filed: 03/06/2012
  • Issued: 10/18/2016
  • Est. Priority Date: 03/06/2012
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for efficient query processing on ordered views by a computing device comprising a processor, comprising:

  • processing a query for database data in a database system that does not support view definitions containing a sorting clause, the query processed against an ordered view without materialization of the ordered view, wherein the ordered view comprises operations directed to at least one database table, wherein a view definition that defines the ordered view comprises at least one sorting clause, wherein the view definition comprising the at least one sorting clause is not supported by the database system by;

    obtaining the view definition for the ordered view;

    obtaining the query to be executed on the database data, wherein the query comprises operations directed to the ordered view;

    identifying any columns in the view definition that are unnecessary for the query;

    after processing any predicates of the query, identifying any sorts in the view definition that are unnecessary or redundant in the query, wherein the sorts in the view definition are defined by the at least one sorting clause, and are not supported by the database system; and

    rewriting the query to eliminate the unnecessary columns, and unnecessary or redundant sorts, wherein the query is rewritten to comprise operations directed only to the at least one database table, wherein the resulting rewritten query is processed efficiently due to;

    i) the elimination of the unnecessary columns;

    ii) the elimination of unnecessary or redundant sorts;

    iii) an effective processing of the ordered view, comprising the at least one sorting clause, without materialization; and

    iv) fewer rows of data returned when the rewritten query is executed.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×