theodox/minq

WhereMany doesn't work with custom attributes

Closed this issue · 2 comments

It looks like maya does not allow bulk getAttr calls on custom attributes :(

Will have to rejigger the split between where() and whereMany() to restrict custom attributes to where calls, which will be slower.

3 options here:

  1. second class lilke item that always uses Where() instead of WhereMany()
  2. annotate the where() call itself to pick the right specialization
  3. Try-except in the query. Probably slow, but least work for user.

OK, fix is is for now - this uses 3 options:

  1. the existing item. which defaults to (slow) Where() queries. Left in for compatibility
  2. a new native which uses WhereMany.
  3. a new custom, which uses Where