WhereMany doesn't work with custom attributes
Closed this issue · 2 comments
theodox commented
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.
theodox commented
3 options here:
- second class lilke
item
that always usesWhere()
instead ofWhereMany()
- annotate the
where()
call itself to pick the right specialization - Try-except in the query. Probably slow, but least work for user.
theodox commented
OK, fix is is for now - this uses 3 options:
- the existing
item
. which defaults to (slow) Where() queries. Left in for compatibility - a new
native
which uses WhereMany. - a new
custom
, which uses Where