Re: Update optimization...

2004-12-03 Thread Gleb Paharenko
Hello. Did you read all promptings at: http://dev.mysql.com/doc/mysql/en/Full_table.html "Manish" <[EMAIL PROTECTED]> wrote: > I am trying to execute this query and it is failing with Table is full error > (I know I can make temp tables big). > update t1, t2 > set t1.XXX=1 > where t

Update optimization...

2004-12-02 Thread Manish
I am trying to execute this query and it is failing with Table is full error (I know I can make temp tables big). update t1, t2 set t1.XXX=1 where t1.YYY=t2. and t2. like '%X%'; My t1 has 10,00,000+ records and t2 has about 70,000 records. I would like to know how can I optimize this query

Re: Update optimization?

2003-11-20 Thread Stephen Brownlow
UPDATE some_table SET some_field=IF(id = some_id,1,0) Have fun, Stephen - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 11:41 AM Subject: Update optimization? Hello guys, Let say: UPDATE some_table SET some_fiel

Re: UPDATE optimization?

2003-11-20 Thread Matt W
TED]> Sent: Thursday, November 20, 2003 6:39 PM Subject: UPDATE optimization? Hello guys, Let say: UPDATE some_table SET some_field=1 WHERE id = some_id and UPDATE some_table SET some_field=0 WHERE id <> some_id what I can do to merge these queries? The first thing that came up in my mind w

Update optimization?

2003-11-20 Thread perlsite
Hello guys, Let say: UPDATE some_table SET some_field=1 WHERE id = some_id and UPDATE some_table SET some_field=0 WHERE id <> some_id what I can do to merge these queries? The first thing that came up in my mind was something like that: UPDATE some_table SET some_field=1 WHERE id = some_id; SET

UPDATE optimization?

2003-11-20 Thread perlsite
Hello guys, Let say: UPDATE some_table SET some_field=1 WHERE id = some_id and UPDATE some_table SET some_field=0 WHERE id <> some_id what I can do to merge these queries? The first thing that came up in my mind was something like that: UPDATE some_table SET some_field=1 WHERE id = some_id; SET