GET 24/7 LIVE HELP NOW

Announcement

Announcement Module
Collapse
No announcement yet.

partial indexes in mysql?

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • partial indexes in mysql?

    Hi,

    Does anyone know if partial indexes, like: http://www.postgresql.org/docs/current/static/indexes-partia l.html, are supported in mysql? I'm supporting soft deletes and I have to go through update my indexes to include the deleted field. It would be nice if I could save some space by not including that field in my index.

    Thanks,
    Ben

  • #2
    No, not in that form.

    But are you sure that you mean what that partial index means?

    Because in your description it sounds as you don't want the "deleted" column to be part of the index.
    And in the Postgres case you very much need that column to be part of the index.
    It's just that you omit rows from the index that does not match the condition.

    Comment


    • #3
      Sorry, you're right. I don't mean I want to omit that column from the index, only to filter rows that are part of that index.

      Do you know if there is any way to accomplish this in MySQL?

      Comment


      • #4
        No there is no such functionality in MySQL.

        Comment

        Working...
        X