On Tue, Jun 11, 2013 at 09:08:42AM -0400, Igor Tandetnik scratched on the wall:
> On 6/11/2013 9:01 AM, Simon Slavin wrote:
> > The only time that _prepare() will use a lot of memory is when it has to
> > generate a temporary index because you have not created a table index
> > suitable for the WHERE and ORDER BY clauses.
> 
> I'm pretty sure this would happen on the first _step(), not on
> _prepare(). Prepare is always nearly instantaneous.

  Yes.  And it isn't always a temporary index.  Many times, with an
  ORDER BY, SQLite will compute (and hold in memory) the full result
  set.

   -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Intelligence is like underwear: it is important that you have it,
 but showing it to the wrong people has the tendency to make them
 feel uncomfortable." -- Angela Johnson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to