dbTalk Databases Forums  

question about Query with joined view

comp.databases.informix comp.databases.informix


Discuss question about Query with joined view in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Floyd Wellershaus
 
Posts: n/a

Default question about Query with joined view - 03-03-2011 , 10:44 AM






Hi,
IDS 10.0.fc5 on AIX 5.3.

Trying to tune a slow query. I think I got it boiled down to this:
The select is joining with a view, and that view is joining with another
view in it's create statement.
The inner view seems to cause a table scan.

I created an index, dropped and recreated that view and now I can get a
select from that view without an table scan.
But....
If I do a select from that view and join it to another table in the select,
no matter what I try, it creates a temporary table for the view and scans
it.

Is this something that can possibly be avoided ?

Thanks !
Floyd


--
Floyd Wellershaus
Dba/Sa Informix/Oracle/Linux/Aix

http://photos.fwellers.com
================================================== ======

Reply With Quote
  #2  
Old   
Doug Lawry
 
Posts: n/a

Default Re: question about Query with joined view - 03-04-2011 , 02:44 AM






Have you tried "IFX_FOLDVIEW 1" in your environment or $ONCONFIG file?

Regards,
Doug Lawry

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.