Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-11156

fetch user by mail or login don't use mysql index

    XMLWordPrintable

Details

    Description

      Fetching user by mail or login generate mysql query that don't use index.
      some thing like
      select * from ezuser where LOWER(email)='XXX'
      or
      select * from ezuser where LOWER(login)='XXX'

      LOWER should be remove from the query, so mysql will use index.

      Login and email must be put in lower case before the are insert in the database so this code LOWER(login) wont be neccessary

      Attachments

        Activity

          People

            unknown unknown
            kouz28 kouz28
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: