Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-954

indexing polymorphic associations

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      When I add an index like this:

      belongs_to :targetable, polymorphic: true, index: true

      only targetable_id gets index when I run db:create_indexes. Is that expected?

      Perhaps it's enough given that Object IDs are unique across clusters?

            Assignee:
            Unassigned Unassigned
            Reporter:
            fbjork Fredrik Björk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: