Hi Thomas, Thanks, for advice, we want to archive the old rows as history(before 2010).
Thanks Tom,
The -i option was saw at community.progress.com/s/article/P27293, and I agree not use.
Agree, we have to use a transaction in the code.
The code used from Developer was:
FOR EACH Historico-Pre-Pauta WHERE Fecha-Pauta < wkFecha .
ASSIGN wkCantidad[4] = wkCantidad[4] + 1.
DELETE FROM Historico-Pre-Pauta.
END.
With a previous disable triger and using a Fecha-Pauta index.
What do you think about use export and import, is not a better way?
The problem is because sometimes the users complaints about application speed, and we decide takeoff the old data plus in addition we will restructure the areas because is not upgraded from DB creation >10 years, but seems to be another factor of delay like network issue because some days the users dont complaint.
Thanks Rob too,
The full OpenEdge release number (from the version file in the OpenEdge install directory).
Progress OpenEdge Release 10.1B build 1216 on Linux tlvn-xca 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007.
The database license (Workgroup or Enterprise). You can get this from the output of a showcfg command.
Workgroup
The BI block size and BI cluster size and AI block size (from proutil dbname -C describe).
OpenEdge Release 10.1B as of Thu Dec 7 23:30:30 EST 2006
OpenEdge Database Description
Database Name : /disco2/vulcano/vulcano
Version : 150.0
Block Size : 1024
Largest Cluster : 0
Create Date : Sat May 28 12:43:23 2005
Last Open Date : Tue Nov 26 01:08:02 2024
Prior Open Date : Tue Nov 26 01:08:02 2024
Schema Change Date : Mon Nov 18 07:46:21 2024
Before Imaging information
Block Size : 8192
Cluster Size (16K Units) : 32
Last Open Date : Tue Nov 26 01:08:03 2024
Backup Information
Last Full Backup Date : Tue Nov 26 12:00:01 2024
Last Incremental Backup : *** Not yet performed ***
Database Features
ID Feature Active Details
---- --------------------------------- ------ -------
9 64 Bit DBKEYS Yes
Whether BIW, APW, and AIW processes are running (from promon dbname, R&D, 1, 4, 7).
Usr Name Type Start time Pid
0 root BROK 11/26/24 01:08 21312
1 root SERV 11/26/24 08:16 28359
2 root SERV 11/26/24 08:16 28361
3 root SERV 11/26/24 08:23 28502
4 root SERV 11/26/24 08:28 28583
5 root MON 11/26/24 15:08 2096
The sizes of the BI and AI buffer pools (from promon dbname, R&D, 1, 9 and R&D, 1, 10).
11/26/24 Status: BI Log
Before-image cluster age time: 0 seconds
Before-image block size: 8192 bytes
Before-image cluster size: 512 kb (524288 bytes)
Number of before-image extents: 8
Before-image log size (kb): 11246896
Bytes free in current cluster: 291719 (56 %)
Last checkpoint was at: 11/26/24 14:31
Number of BI buffers: 20
Full buffers: 0
11/26/24 Status: AI Log
15:12:20
*** After-image logging is not enabled. ***
Whether after imaging is enabled.
No
Whether OpenEdge Replication is enabled.
No
The structure of the database, and particularly the BI and AI areas and the areas that contain the table being purged and the index(es) involved in the query (from dbname.st).
The structure is the same as the date of creation
[root@tlvn-xca vulcano]# /usr/dlc/bin/prostrct list /disco2/vulcano/vulcano
Area Name: Control Area, Type 6, Block Size 1024, Extents 1, Records/Block 32, Cluster Size 1
Ext # 1, Type VARIABLE, Size 32 KByte, Name: /disco2/vulcano/vulcano.db
Area Name: Primary Recovery Area, Type 3, Block Size 8192, Extents 8
Ext # 1, Type FIXED , Size 150000 KByte, Name: /disco2/vulcano/vulcano.b1
Ext # 2, Type FIXED , Size 2096768 KByte, Name: /disco2/vulcano/vulcano.b2
Ext # 3, Type FIXED , Size 1500032 KByte, Name: /disco2/vulcano/vulcano.b3
Ext # 4, Type FIXED , Size 1500032 KByte, Name: /disco2/vulcano/vulcano.b4
Ext # 5, Type FIXED , Size 1500032 KByte, Name: /disco2/vulcano/vulcano.b5
Ext # 6, Type FIXED , Size 1500032 KByte, Name: /disco2/vulcano/vulcano.b6
Ext # 7, Type FIXED , Size 1500032 KByte, Name: /disco2/vulcano/vulcano.b7
Ext # 8, Type FIXED , Size 1500032 KByte, Name: /disco2/vulcano/vulcano.b8
Area Name: Schema Area, Type 6, Block Size 1024, Extents 1, Records/Block 32, Cluster Size 1
Ext # 1, Type VARIABLE, Size 13136 KByte, Name: /disco2/vulcano/vulcano.d1
Area Name: tablas, Type 6, Block Size 1024, Extents 16, Records/Block 64, Cluster Size 1
Ext # 1, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d1
Ext # 2, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d2
Ext # 3, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d3
Ext # 4, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d4
Ext # 5, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d5
Ext # 6, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d6
Ext # 7, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d7
Ext # 8, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d8
Ext # 9, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d9
Ext # 10, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d10
Ext # 11, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d11
Ext # 12, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d12
Ext # 13, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d13
Ext # 14, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d14
Ext # 15, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_7.d15
Ext # 16, Type VARIABLE, Size 1183440 KByte, Name: /disco2/vulcano/vulcano_7.d16
Area Name: indices, Type 6, Block Size 1024, Extents 6, Records/Block 1, Cluster Size 1
Ext # 1, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_8.d1
Ext # 2, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_8.d2
Ext # 3, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_8.d3
Ext # 4, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_8.d4
Ext # 5, Type FIXED , Size 102400 KByte, Name: /disco2/vulcano/vulcano_8.d5
Ext # 6, Type VARIABLE, Size 934592 KByte, Name: /disco2/vulcano/vulcano_8.d6
Sorry for my spanglish and thanks a lot for responses.