Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-8906

Allow DATE-based comparisons in NXQL

    XMLWordPrintable

    Details

    • Upgrade notes:
      Hide

      Now it's possible to make queries like:

      SELECT * FROM Document WHERE DATE(dc:modified) = DATE '2012-02-22';

      This can be efficient only if the underlying database has a specialized index on the column. For PostgreSQL, the index must be added as:

      CREATE INDEX dc_modified_date_idx ON dublincore (DATE(modified))

      Show
      Now it's possible to make queries like: SELECT * FROM Document WHERE DATE(dc:modified) = DATE '2012-02-22'; This can be efficient only if the underlying database has a specialized index on the column. For PostgreSQL, the index must be added as: CREATE INDEX dc_modified_date_idx ON dublincore (DATE(modified))

      Description

      We need to be able to do this in NXQL:

      SELECT * FROM Document WHERE DATE(dc:modified) = DATE '2012-02-22';
      

      (Also with other comparison operators.)

      No date arithmetic (time interval types) are needed for this.

      To be efficient ad-hoc functional indexes will have to be added by hand by a DBA (see upgrade notes).

        Attachments

          Activity

            People

            • Assignee:
              fguillaume Florent Guillaume
              Reporter:
              fguillaume Florent Guillaume
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: