My problem is a bit different.
I had to setup an advanced search engine with a lot of criteria. Depending on which categories/options are choose the query can run for a very long time. I optimized/debug it but some cases remain. That's why I wanted to put a timeout on queries ?
Is it possible ?