If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > IDS 9.40 + dbspacetemp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-19-04, 13:15
fsercolin fsercolin is offline
Registered User
 
Join Date: Nov 2004
Posts: 7
IDS 9.40 + dbspacetemp

I have had a process that running on ids 7.31 , where it use the dbspace temp to create some temporary tables. This process always ran in around 1 hour.
I migrated the ids to 9.40 and now my process run all night long and doesnīt finish. When i rewrited the process to doesnīt use temporary tables it ran faster.

Do someone know if there is any difference about the use of dbspace temp on IDS 9.40??
Reply With Quote
  #2 (permalink)  
Old 11-19-04, 14:59
nog nog is offline
Registered User
 
Join Date: Nov 2004
Posts: 26
stupid question I know, but you have updated stats since migrating?
Reply With Quote
  #3 (permalink)  
Old 11-21-04, 13:19
matute matute is offline
Registered User
 
Join Date: Jun 2004
Location: Madrid, Spain
Posts: 47
Another stupid question: have you verified that:
- the temp table is created 'with no log', or the select that creates it has that phrase as the last statement.
- The temporary dbspace(s) was/were created as 'temporary' (check onstat -d) (don't laugh, it was the case in one of my customers)
- the temporary dbspace(s) is/are listed in the onconfig file (DBSPACETEMP), or in the application environment (DBSPACETEMP)

Just my 2 cents...
__________________
José Luis Matute.

Regards from Spain.
Reply With Quote
  #4 (permalink)  
Old 11-22-04, 12:49
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 139
When migrating from IDS 7.x to IDS 9.x, you should issue the following:

update statistics low drop distributions;
update statistics medium distributions only;

then update statistics the way you normally do.
Reply With Quote
  #5 (permalink)  
Old 11-23-04, 14:16
fsercolin fsercolin is offline
Registered User
 
Join Date: Nov 2004
Posts: 7
thanks for all by the help.

This situation is a knew defect on IDS 9.30 and greater.

the problem in the fact is this :

when you are creating a temp table and populate data on it, and after you create a index on the temp table. the optmizer donīt caucule the rowcount for this table, because of this it canīt use the index. You have to run a update statistcs low on table to solve the problem.

on the IDS 7.31 the optimizer caucule this information
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On