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 > tables and allocated pages

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-11-05, 03:13
supinformix supinformix is offline
Registered User
 
Join Date: Apr 2004
Location: Brussels
Posts: 57
tables and allocated pages

Hi all,

We have SPL we run every night.
We run IDS7.31.UD2 on AIX4.3
Some SPL's do "delete from table" before loading new data into table.
I know it should be better to "drop table; create table".
It seems that "delete from table" drops all data but it certainly not release all allocated pages and worse when loading new data in the table it does not reuse already allocated pages.
1 table has now npused=137 500 and npdata=1362.
After unload and reload the table and create index npused=3152.
The table has 2 columns and 1 primary index. nothing complex.

Why should IDS not reuse all pages still allocated to a table after a "delete from table" ?
Can someone help us ?
Should we do cluster index in the procedure or replace all "delete" by "drop, create" ?
__________________
Yves & Willy
Reply With Quote
  #2 (permalink)  
Old 01-11-05, 13:56
saatatya saatatya is offline
Registered User
 
Join Date: Jan 2005
Posts: 30
Thumbs up update statistics medium

De lete statement will not delete records immediately. It just marked records for delete. So, the space will not immediately available after delete. Eventually, btree cleaner delete records and reclaim the space.

You have couple of choice:

1)Delete records, followed by update statistics medium on that table
2)Drop and recreate the table
3)Create cluster index after load data. Basically, it will recreate the table with different partition number.

Cheers!
Sanjit Chakraborty
Reply With Quote
  #3 (permalink)  
Old 01-14-05, 06:37
supinformix supinformix is offline
Registered User
 
Join Date: Apr 2004
Location: Brussels
Posts: 57
Thanks !
__________________
Yves & Willy
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