I have a query in Sybase IQ 12.7 that looks like:
select ip from iplookup where ip in (select ip from persisted_info)
where iplookup is defined as a single column.
I saw the IN and subquery and decided that must be slow (full table scan) and that this would be preferred:
select lk.ip from iplookup lk, persisted_info ps where lk.ip = ps.ip
but I want to be careful and get some evidence to back me up. Sybase IQ does not support EXPLAIN PLAN and using SET STATISTICS TIME ON returns a syntax error.
To resolve this, I would like to know how to get either:
- timing information
- execution plan information
Edit: I am using sqsh from a Mac to talk to Sybase and I get extra information in the response when I add SET STATISTICS IO ON ahead of the query.