SQLBase 9.0.1 INSERTs with a subselect

forum.gupta.bugreport (2005-2010)
Wolfgang Lackner

SQLBase 9.0.1 INSERTs with a subselect

Post by Wolfgang Lackner » 04 Jan 2006, 10:25

 Posted by:  Wolfgang Lackner 

There is huge difference in performance with SQLBase 9.0.1 (PTF1) and all
previous databases, if you use an INSERT like:

INSERT INTO (xxx) SELECT xxx FROM WHERE xxxxx AND y IN
(SELECT x FROM WHERE xxx)

i.e. you connot use such a statement now, because it is really very slow,
even the result of the sub is null.
the defect number is 84771

Mike Vandine

Re: SQLBase 9.0.1 INSERTs with a subselect

Post by Mike Vandine » 05 Jan 2006, 11:06

 Posted by:  Mike Vandine 

Hi Wolfgang,

How does the time change if you modify the 'AND y IN' to use an 'exists'
clause?

Mike

Wolfgang Lackner

Re: SQLBase 9.0.1 INSERTs with a subselect

Post by Wolfgang Lackner » 09 Jan 2006, 14:00

 Posted by:  Wolfgang Lackner 

hi Mike,
no problem with exists. I know that.

But:
(1) if it works, IN ist faster than EXISTS
(2) I use this statement with different DBs
(3) up to now it worked

wolfgang

Günther

Re: SQLBase 9.0.1 INSERTs with a subselect

Post by Günther » 10 Jan 2006, 19:43

 Posted by:  Günther 

Why not using join syntax for the query part?
Commonly this is much faster compared to subqueries with IN or EXISTS (At
least on iSeries and Oracle)
But I do not have experience on SQLBase.

Günther

Return to “gupta.bugreport”

Who is online

Users browsing this forum: [Ccbot] and 0 guests