Re: memory usage for row delete cascade

2008-08-18 Thread Iwud H8u
NULL PRIMARY >>>>>>> KEY >>>>>>> GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1) , >>>>>>> monday VARCHAR(16), >>>>>>> tuesday VARCHAR(16), wednesd

Re: memory usage for row delete cascade

2008-08-18 Thread Rick Hillegas
e that you're doing a sequential table scan. HTH -Mike _____ From: jay _ [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 4:16 AM To: derby-user@db.apache.org Subject: memory usage for row delete cascade Hi all, I have a database with three tables (Table_

Re: memory usage for row delete cascade

2008-08-18 Thread Iwud H8u
cascade). >>>>> >>>>> I am guessing child_id does not need a separate index to be generated >>>>> because it is the primary key in Child_info table and atttendance_info >>>>> tables. However child_id cant be either unique or primary in &g

Re: memory usage for row delete cascade

2008-08-18 Thread Rick Hillegas
able scan. HTH -Mike _ From: jay _ [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 4:16 AM To: derby-user@db.apache.org Subject: memory usage for row delete cascade Hi all, I have a database with three tables (Table_A, Table_B and Table_C). There is one identity

Re: memory usage for row delete cascade

2008-08-18 Thread Iwud H8u
; My query times for something like >>> >>> DELETE FROM CHILD_INFO WHERE CHILD_ID = 1 >>> >>> is around 6 seconds with only two row entries CHILD_INFO, 6 row entries >>> in >>> PARENT_INFO and just one entry in ATTENDANCE_INFO! >>> &

Re: memory usage for row delete cascade

2008-08-18 Thread Rick Hillegas
at you're doing a sequential table scan. HTH -Mike _ From: jay _ [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 4:16 AM To: derby-user@db.apache.org Subject: memory usage for row delete cascade Hi all, I have a database with three tables (Table_A, Ta

RE: memory usage for row delete cascade

2008-08-18 Thread Iwud H8u
index on Col_x_ID? Is Col_x_ID a unique ID? If > so, is this the primary key for the table? > > > > That would be the first thing to look at. If no index exists, my guess > would > be that you're doing a sequential table scan. > > > > HTH > > > > -

RE: memory usage for row delete cascade

2008-08-18 Thread Michael Segel
the first thing to look at. If no index exists, my guess would be that you're doing a sequential table scan. HTH -Mike _ From: jay _ [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 4:16 AM To: derby-user@db.apache.org Subject: memory usage for row delete cas

memory usage for row delete cascade

2008-08-18 Thread jay _
Hi all, I have a database with three tables (Table_A, Table_B and Table_C). There is one identity column in Table_A which acts as a foreign key in Tables B and C with an ON DELETE CASCADE. Here is the table structure Table A : Col_x_ID , Coly_Name, Table B : Col_p_ID, Col_q_Name,