On Thu, Dec 17, 2009 at 04:46:08PM +0000, Simon Slavin scratched on the wall:
> 
> On 17 Dec 2009, at 4:38pm, Kavita Raghunathan wrote:
> 
> > It is an option to merge tables, but the concern there is that the speed of
> > lookup maybe compromised?
> 
> The speed of lookup will be very small if you have an INDEX which
> matches what the SELECT asks for.

  Of course, an index has its own B-Tree, plus a full copy of the
  indexed data.  This is likely to add much more overhead than you'll
  gain back by merging a few tables.

  Personally I don't think the overhead described is out of line,
  especially if none of the user columns are marked INTEGER PRIMARY
  KEY.

   -j

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

"Our opponent is an alien starship packed with atomic bombs.  We have
 a protractor."   "I'll go home and see if I can scrounge up a ruler
 and a piece of string."  --from Anathem by Neal Stephenson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to