Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3773

Drop order by clause in the query made for VanityPath

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • Resource Resolver 1.1.0
    • Resource Resolver 1.1.2
    • ResourceResolver
    • None

    Description

      Currently Resource Resolver's MapEntries uses following query for loading the VanityPaths

      ====
      SELECT sling:vanityPath, sling:redirect, sling:redirectStatus FROM sling:VanityPath WHERE sling:vanityPath IS NOT NULL ORDER BY sling:vanityOrder DESC
      ====

      It specifies the ORDER By for vanityOrder. However the code later does a custom sorting in MapEntry. So we can possibly drop the order by clause

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: