Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Instead of the index you've created you need to create this one:</p> <pre><code>CREATE INDEX IDX_LISTINGMANAGER_ID ON listingmanager (trim(LOWER(listingmanagerid))); </code></pre> <p>The case is that functional index should be EXACTLY the same with the condition in the <code>WHERE</code> clause. </p> <p>Also you could use this trick in order to make your index work:</p> <pre><code>SELECT &lt;fields&gt; FROM ListingManager WHERE lower(LISTINGMANAGERID) like '%e.kkagacoe4aaae7rnr9lua5%' AND trim(lower(LISTINGMANAGERID)) = 'e.kkagacoe4aaae7rnr9lua5' </code></pre> <p>But it's pulled by it's ears. Also you should be awared that sometimes optimizer consider <code>FULL TABLE SCAN</code> as a more efficient way to retrieve data than to use an index, but I think not in your case (to make optimizer use an index, you should use <a href="http://docs.oracle.com/cd/E11882_01/server.112/e16638/hintsref.htm" rel="nofollow">hints</a>).</p> <p>For example, your query using hints:</p> <pre><code>SELECT /*+ INDEX (ListingManager IDX_LISTINGMANAGER_ID)*/ ListingManagerID, FirstName, LastName, PrimaryPhone, AlternatePhone, Email, UserName, Password, RecallGuid, CustomerSince, PWChangeRequired, PWExpireDate, CallingHours, CreateDate, CreateIPAddress, LastLogin, AutoRenewFlag, LastUpdated, UpdatedBy, AutoRenewRemovedDate, AutoRenewDate, isSupplier, PrefferedLanguage, AboutMe, PictureFilePath, IsProfilePictureDisplay, LocaleID, Address1, Address2, CityID, CountryID, StateProvinceID, PostalCode, RegistrationSource, PPCTypeID, GhostUser, ProfileId, TimezoneID, OCA FROM ListingManager WHERE trim(lower(LISTINGMANAGERID)) = 'e.kkagacoe4aaae7rnr9lua5' </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload