I would like to apply several composite indexes to one of my DM models, with some of the table columns appearing in more than one index. Googling around, I thought I had found what I was looking for in Sam Smoot's comment here:
http://jlaine.net/2008/6/2/specifying-indeces-in-datamapper#comments > You mentioned the index ordering gotcha. If you have multiple composite > indexes (probably most common), you might get more mileage out of the > Resource::index method, which allows for something like this: > > index [:id, :last_name] index [:id, :first_name, :last_name, :bio] > > Which wouldn’t be possible with the inline property options. Has this been implemented yet? I can't seem to get it to work using datamapper 0.9.11. Cheers, Drew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
