i once thought about extending SqlAlchemy to handle this issue behind the 
scenes, but each database treats `IN()` differently.  for example: oracle 
maxes out at a number of elements, while mysql maxes out based on the size 
of the overall statement (which is configured on the server).  it's too 
much work to limit this in sqlalchemy, as these limits change across 
servers.  [ i forget what postgres maxed out on, i think it was a hard 
number too.]

the workaround I used was to just build a query-base, and then run multiple 
selects with a single `IN` within a for-loop which appends to a list.  i 
found that performance to be much better than chaining multiple `IN()` with 
`OR`

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to