On Mon, 1 Jun 2009 12:32:26 +0200, "Ralf"
<[email protected]> wrote:

>Hello,
>[>> ] considering a m:n relation a.id <- a.id,b.id -> b.id, is it due to
>performance, advisable to put an index on a.id,b.id ?


a_id,b_id should be unique in the relationship table, so you
should make (a_id,b_id) the primary key to enforce that
constraint.

>Thanks 
>Ralf
-- 
  (  Kees Nuyt
  )
c[_]
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to