Where did the sticky threads go?

Close but not quite.... IN (0,1,2) on thread visibility. Not sure how aware you are with SQL, but IN () generally translates to IN 0 OR 1 OR 2, which can be extremely slow with larger boards.

Depends on the execution plan optimizer, and how it internally translates the syntax. In Oracle or MSSQL, IN queries with fixed values are lightning fast. The traditional approach would be something like 'AND t_visibility >= 0 AND t_visibility <= 2' and may actually be faster here, as you have to deal with a sequence of values and only need to check the boundaries.

O7,
[noob]

Still locked out completely for 48+ hours because of the Cavalieri bug. Ticket #00000242455. Won the Tier 10 Festive Level in World of Tanks in the meantime, but that's no substitute. Hey, I prolonged my holidays by 3 days just for ED and now I just sit there. Fate is cruel.
 
Last edited:
Perhaps a query like <=2 would work better?

Assuming there are no negative numbers you want to exclude

Yes, that would even be faster, provided that NULL processing is out of the way as well. NULL vs. ZERO is always a possible pitfall. We have a rule internally to never use 0 as a database constant because of this.

O7,
[noob]
 
Back
Top Bottom