R Smith wrote: > I am using 151 columns for both tests. The only thing that changes > between the two scripts are the words "WITHOUT ROWID" being added
<http://www.sqlite.org/withoutrowid.html> says: | WITHOUT ROWID tables will work correctly ... for tables with a single | INTEGER PRIMARY KEY. However, ordinary rowid tables will run faster in | that case. and: | WITHOUT ROWID tables work best when individual rows are not too large. So this is pretty much the documented worst case for WITHOUT ROWID tables. If the query is executed by making a copy of all the table data into a temporary B-tree (index), which is what INTERSECT and probably IN(...) are doing, then the WITHOUT-ROWID-ness of the table does not matter. Regards, Clemens _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users