Re: [SQL] Random resultset retrieving -> performance bottleneck

2002-08-03 Thread Christopher Kings-Lynne
> I'm running into a performance problem when considering the following > scenario: I have a fairly large table (1mio rows) related to other smaller > tables (between 100 and 1 rows) and would like to retrieve the joined > data (through a view) in random order. In order to do so, the main tabl

Re: [SQL] Random resultset retrieving -> performance bottleneck

2002-08-02 Thread Stephan Szabo
On Thu, 1 Aug 2002, [iso-8859-1] Cédric Dufour wrote: > * > * 2. > * > BEGIN; > SET CONSTRAINTS ALL DEFERRED; > CREATE TEMP TABLE tmp_Large AS SELECT * FROM tb_Table; > DELETE FROM tb_Large; -- won't work; RI violation on foreign key > 'tb_Foo(FK_Large)' > INSERT INTO tb_Large SELECT * F

[SQL] Random resultset retrieving -> performance bottleneck

2002-08-02 Thread Cédric Dufour
Hello to all of you, I'm running into a performance problem when considering the following scenario: I have a fairly large table (1mio rows) related to other smaller tables (between 100 and 1 rows) and would like to retrieve the joined data (through a view) in random order. In order to do so,