Changes between Initial Version and Version 1 of Ticket #34840, comment 10


Ignore:
Timestamp:
Sep 16, 2023, 5:44:04 AM (15 months ago)
Author:
Florian Apolloner

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34840, comment 10

    initial v1  
    1313
    1414Though that begs the next question: Assume you generate an index for a text column named `x`. Would a query with `.filter(x__startswith='test')` use the index if the index is created on `x` but the query uses `x::text like 'test%'`?
     15
     16EDIT:// The `next` question might be a non issue generate `x like 'test%'::text` -- Nevertheless it feels a bit unfortunate that postgresql cannot use the index with the cast.
Back to Top