Many times I find myself writing.

ds = ds.exclude(id: ds1) if x
ds = ds.exclude(id: ds2) if z
ds = ds.exclude(id: ds2) if y

Is there any material performance impact of separating out the column 
loopups?

Should I be "UNION"ing the list of ids of first and then just do one 
exclude/where statement? My guess is it doesn't really matter ultimately 
because it's a direct lookup on an indexed field even if it's called 
multiple times.
 
Aryk

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/f5725e04-9d6e-4cba-b89d-081dff2ed930o%40googlegroups.com.

Reply via email to