Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

Re: queries slow after migration

Posted By: Art Kagel
Date: Thursday, 26 May 2011, at 4:21 p.m.

In Response To: Re: queries slow after migration (ROGER VILCA)

It DOES look like you are doing the update stats correctly, but the
difference between the estimate and actual row counts is saying rather
loudly that something is not right. Hmm, Don't remember, is this 11.70? If
so, the AUTOSTATS may be preventing the update statistics commands from
actually doing anything. If this is 11.70, try running those statements
again, but add the FORCE clause to each and see if that helps.

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
Blog: http://informix-myview.blogspot.com/

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Advanced DataTools, the IIUG, nor any other
organization with which I am associated either explicitly, implicitly, or by
inference. Neither do those opinions reflect those of other individuals
affiliated with any entity with which I am affiliated nor those of the
entities themselves.

On Thu, May 26, 2011 at 3:57 PM, ROGER VILCA <rvilca@luzdelsur.com.pe>wrote:

> I run the statistics according to the guides (I think so). Please, if there
> is
> any addicional recommendation, thanks.
>
> *********** proyectos_de_inver **************
>
> create table "xsic".proyectos_de_inver
> (
>
> empresa char(2) not null ,
>
> folio_proyecto decimal(10,0),
>
> proyecto_inversion char(6) not null ,
>
> descripcion char(100) not null ,
>
> observacion char(255),
>
> item char(4) not null ,
>
> grupo char(1) not null ,
>
> subgrupo char(3),
>
> jefe_proyecto char(50) not null ,
>
> area_gestora char(10),
>
> area_admin char(10),
>
> ano_lib_ppto decimal(4,0) not null ,
>
> fecha_inicio_prog date not null ,
>
> fecha_termino_prog date not null ,
>
> fecha_inicio_real date,
>
> fecha_cierre_real date,
>
> presupuesto_pi_us decimal(12,2),
>
> presupuesto_pi_p decimal(17,2) not null ,
>
> ano_moned_ppto_p decimal(4,0),
>
> mes_moned_ppto_p decimal(2,0),
>
> estado char(1) not null ,
>
> tasa_cambio decimal(10,4),
>
> usuario_actualiz char(30) not null ,
>
> fecha_actualiz date not null ,
>
> rol_dig char(10),
>
> fec_dig date,
>
> rol_aut char(10),
>
> fec_aut date,
>
> rol_apr char(10),
>
> fec_apr date,
>
> rol_act char(10),
>
> tipo_proy char(10),
>
> indppto char(1)
>
> default 'S'
> );
>
> revoke all on "xsic".proyectos_de_inver from "public" as "xsic";
>
> create index "xsic".i_ep_proy_inver on "xsic".proyectos_de_inver
>
> (proyecto_inversion,empresa) using btree ;
> create index "xsic".proyecto on "xsic".proyectos_de_inver
> (proyecto_inversion,
>
> ano_lib_ppto,empresa) using btree ;
>
> DATABASE sifco;
> SET PDQPRIORITY 0;
> UPDATE STATISTICS MEDIUM FOR TABLE proyectos_de_inver DISTRIBUTIONS ONLY;
> UPDATE STATISTICS HIGH FOR TABLE proyectos_de_inver (proyecto_inversion)
> DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE proyectos_de_inver (proyecto_inversion,
> empresa);
> UPDATE STATISTICS HIGH FOR TABLE proyectos_de_inver ( ano_lib_ppto )
> DISTRIBUTIONS ONLY;
> UPDATE STATISTICS HIGH FOR TABLE proyectos_de_inver ( empresa)
> DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE proyectos_de_inver (proyecto_inversion,
> ano_lib_ppto, empresa);
>
> *********** inver_de_capital ****************
>
> create table "xsic".inver_de_capital
> (
>
> empresa char(2) not null ,
>
> inversion_capital char(6) not null ,
>
> descripcion char(50),
>
> observacion char(255),
>
> responasable char(50),
>
> jefe_proyecto char(50) not null ,
>
> area_ejecutora char(10),
>
> fecha_inicio_prog date not null ,
>
> fecha_termino_prog date not null ,
>
> fecha_inicio_real date,
>
> fecha_puesta_serv date,
>
> fecha_cierre_real date,
>
> presupuesto_tot_ic decimal(17,2) not null ,
>
> presupuesto_tot_us decimal(17,2) not null ,
>
> ano_moned_ppto decimal(4,0) not null ,
>
> mes_moned_ppto decimal(2,0) not null ,
>
> proyecto_inver char(6),
>
> estado char(1) not null ,
>
> usuario_actualiz char(30),
>
> fecha_actualiz date,
>
> correl_registro char(10),
>
> area_gestora char(10),
>
> actividad char(10),
>
> usr_reg char(12),
>
> fec_reg date,
>
> usr_apr char(12),
>
> fec_apr date,
>
> usr_aut char(12),
>
> fec_aut date,
>
> usr_cie char(12),
>
> fec_cie date,
>
> rol_reg char(12),
>
> rol_aut char(12),
>
> rol_apr char(12),
>
> rol_cie char(12),
>
> rol_rec_apr char(12),
>
> rol_rec_aut char(12),
>
> fec_rec_apr date,
>
> fec_rec_aut date,
>
> glosa_cierre varchar(20),
>
> indexceso char(1)
>
> default 'N' not null ,
>
> pctexceso smallint
>
> default 0 not null ,
>
> version char(1)
>
> default ''
> );
>
> revoke all on "xsic".inver_de_capital from "public" as "xsic";
>
> create index "xsic".idx_correl on "xsic".inver_de_capital (correl_registro,
>
> empresa) using btree ;
> create index "xsic".inversion_capital on "xsic".inver_de_capital
>
> (inversion_capital,empresa) using btree ;
> create index "xsic".proyecto_inver on "xsic".inver_de_capital
>
> (proyecto_inver,empresa) using btree ;
>
> DATABASE sifco;
> SET PDQPRIORITY 0;
> UPDATE STATISTICS MEDIUM FOR TABLE inver_de_capital DISTRIBUTIONS ONLY;
> UPDATE STATISTICS HIGH FOR TABLE inver_de_capital (inversion_capital)
> DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE inver_de_capital (inversion_capital,
> empresa);
> UPDATE STATISTICS HIGH FOR TABLE inver_de_capital (proyecto_inver)
> DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE inver_de_capital (proyecto_inver, empresa);
> UPDATE STATISTICS HIGH FOR TABLE inver_de_capital (correl_registro)
> DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE inver_de_capital (correl_registro,
> empresa);
>
> *********** con_combin ***********************
>
> create table "xsic".con_combin
> (
>
> empresa char(10) not null ,
>
> combinatoria decimal(8,0) not null ,
>
> aux_valor1 char(10),
>
> aux_valor2 char(10),
>
> aux_valor3 char(10),
>
> aux_valor4 char(10),
>
> aux_valor5 char(10),
>
> aux_valor6 char(10),
>
> aux_valor7 char(10),
>
> aux_valor8 char(10),
>
> aux_valor9 char(10),
>
> aux_valor10 char(10),
>
> aux_valor11 char(10),
>
> aux_valor12 char(20),
>
> aux_valor13 char(10),
>
> aux_valor14 char(10),
>
> aux_valor15 char(10),
>
> aux_valor16 char(10),
>
> aux_valor17 char(10),
>
> aux_valor18 char(10),
>
> aux_valor19 char(10),
>
> aux_valor20 char(10)
> );
>
> revoke all on "xsic".con_combin from "public" as "xsic";
>
> create index "xsic".i1_con_combin on "xsic".con_combin (aux_valor1,
>
> empresa) using btree ;
> create index "xsic".i10_con_combin on "xsic".con_combin (aux_valor10,
>
> empresa) using btree ;
> create unique index "xsic".i100_con_combin on "xsic".con_combin
>
> (combinatoria,empresa) using btree ;
> create index "xsic".i11_con_combin on "xsic".con_combin (aux_valor11,
>
> empresa) using btree ;
> create index "xsic".i12_con_combin on "xsic".con_combin (aux_valor12,
>
> empresa) using btree ;
> create index "xsic".i13_con_combin on "xsic".con_combin (aux_valor13,
>
> empresa) using btree ;
> create index "xsic".i14_con_combin on "xsic".con_combin (aux_valor14,
>
> empresa) using btree ;
> create index "xsic".i15_con_combin on "xsic".con_combin (aux_valor15,
>
> empresa) using btree ;
> create index "xsic".i16_con_combin on "xsic".con_combin (aux_valor16,
>
> empresa) using btree ;
> create index "xsic".i2_con_combin on "xsic".con_combin (aux_valor2,
>
> empresa) using btree ;
> create index "xsic".i3_con_combin on "xsic".con_combin (aux_valor3,
>
> empresa) using btree ;
> create index "xsic".i4_con_combin on "xsic".con_combin (aux_valor4,
>
> empresa) using btree ;
> create index "xsic".i5_con_combin on "xsic".con_combin (aux_valor5,
>
> empresa) using btree ;
> create index "xsic".i6_con_combin on "xsic".con_combin (aux_valor6,
>
> empresa) using btree ;
> create index "xsic".i7_con_combin on "xsic".con_combin (aux_valor7,
>
> empresa) using btree ;
> create index "xsic".i8_con_combin on "xsic".con_combin (aux_valor8,
>
> empresa) using btree ;
> create index "xsic".i9_con_combin on "xsic".con_combin (aux_valor9,
>
> empresa) using btree ;
> create index "xsic".idx_act_cr_rec on "xsic".con_combin (aux_valor4,
>
> aux_valor5,aux_valor9,combinatoria,empresa) using btree ;
>
> create index "xsic".integra on "xsic".con_combin (aux_valor1,aux_valor2,
>
> aux_valor3,aux_valor4,aux_valor5,aux_valor6,aux_valor7,aux_valor8,
>
> aux_valor9,aux_valor10,aux_valor11,aux_valor12,aux_valor13,
>
> aux_valor14,aux_valor15,aux_valor16) using btree ;
>
> DATABASE sifco;
> SET PDQPRIORITY 0;
> UPDATE STATISTICS MEDIUM FOR TABLE con_combin DISTRIBUTIONS ONLY;
> UPDATE STATISTICS HIGH FOR TABLE con_combin (combinatoria) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (combinatoria, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor1) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor1, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin ( aux_valor2 ) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS HIGH FOR TABLE con_combin ( empresa) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor1, aux_valor2,
> aux_valor3, aux_valor4, aux_valor5, aux_valor6, aux_valor7, aux_valor8,
> aux_valor9, aux_valor10, aux_valor11, aux_valor12, aux_valor13,
> aux_valor14,
> aux_valor15, aux_valor16);
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor2, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor3) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor3, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor4) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor4, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin ( aux_valor5 ) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor4, aux_valor5,
> aux_valor9, combinatoria, empresa);
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor5, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor6) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor6, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor7) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor7, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor8) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor8, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor9) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor9, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor10) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor10, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor11) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor11, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor12) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor12, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor13) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor13, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor14) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor14, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor15) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor15, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_combin (aux_valor16) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_combin (aux_valor16, empresa);
>
> *********** con_enccom ***********************
>
> create table "xsic".con_enccom
> (
>
> empresa char(10) not null ,
>
> ano decimal(4,0) not null ,
>
> mes decimal(2,0) not null ,
>
> dia decimal(2,0) not null ,
>
> tipo_comprobante char(10) not null ,
>
> correlativo char(10) not null ,
>
> fecha date not null ,
>
> glosa char(255),
>
> numero_externo decimal(8,0),
>
> moneda char(10) not null ,
>
> tasa decimal(13,4) not null ,
>
> origen char(10) not null ,
>
> total decimal(16,2),
>
> estado char(1) not null ,
>
> usuario char(40),
>
> fecha_modificacion date,
>
> fecha_creacion date,
>
> terminal char(30),
>
> ind_cierre decimal(2,0)
>
> default 0,
>
> tip_origen char(1),
>
> rol_int char(10),
>
> fec_int date,
>
> rol_of char(10),
>
> fec_of date,
>
> total_me decimal(16,2),
>
> ind_conversion char(1)
>
> default 'S',
>
> tipo_ajuste char(10),
>
> ind_acumulable char(1)
>
> default 'S',
>
> ano_origen decimal(4,0),
>
> mes_origen decimal(2,0)
> );
>
> revoke all on "xsic".con_enccom from "public" as "xsic";
>
> create unique index "xsic".i1_con_enccom on "xsic".con_enccom
>
> (correlativo,tipo_comprobante,empresa) using btree ;
> create unique index "xsic".i2_con_enccom on "xsic".con_enccom
>
> (correlativo,numero_externo,tipo_comprobante,fecha,empresa)
>
> using btree ;
> create index "xsic".i3_con_enccom on "xsic".con_enccom (mes,ano,
>
> empresa) using btree ;
> create index "xsic".i4_con_enccom on "xsic".con_enccom (estado,
>
> tipo_comprobante,correlativo,empresa) using btree ;
> create index "xsic".i5_con_enccom on "xsic".con_enccom (fecha,
>
> correlativo,tipo_comprobante,empresa) using btree ;
> create index "xsic".i6_con_enccom on "xsic".con_enccom (correlativo,
>
> tipo_comprobante,ano,empresa) using btree ;
>
> alter table "xsic".con_enccom add constraint (foreign key
> (tipo_comprobante,
>
> empresa) references "xsic".con_comprob );
>
> DATABASE sifco;
> SET PDQPRIORITY 0;
> UPDATE STATISTICS MEDIUM FOR TABLE con_enccom DISTRIBUTIONS ONLY;
> UPDATE STATISTICS HIGH FOR TABLE con_enccom (mes) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_enccom (mes, ano, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_enccom (tipo_comprobante)
> DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_enccom (tipo_comprobante, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_enccom (correlativo) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_enccom (correlativo, tipo_comprobante,
> empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_enccom ( ano ) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS HIGH FOR TABLE con_enccom ( empresa) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_enccom (correlativo, tipo_comprobante,
> ano, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_enccom ( numero_externo )
> DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_enccom (correlativo, numero_externo,
> tipo_comprobante, fecha, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_enccom (fecha) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_enccom (fecha, correlativo,
> tipo_comprobante, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_enccom (estado) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_enccom (estado, tipo_comprobante,
> correlativo, empresa);
>
> *********** con_movcom ***********************
>
> create table "xsic".con_movcom
> (
>
> empresa char(10) not null ,
>
> ano decimal(4,0) not null ,
>
> mes decimal(2,0) not null ,
>
> dia decimal(2,0) not null ,
>
> fecha date not null ,
>
> tipo_comprobante char(10) not null ,
>
> correlativo char(10) not null ,
>
> secuencia decimal(5,0) not null ,
>
> cuenta char(12) not null ,
>
> ord_serie decimal(3,0),
>
> referencia char(20),
>
> origen char(10) not null ,
>
> estado char(1) not null ,
>
> debe_ingreso decimal(16,2),
>
> haber_ingreso decimal(16,2),
>
> debe_origen decimal(16,2),
>
> haber_origen decimal(16,2),
>
> debe_cuota decimal(13,4),
>
> haber_cuota decimal(13,4),
>
> tasa_cuota decimal(13,4),
>
> glosa char(100),
>
> calce_analisis char(1),
>
> calce_banco decimal(8,0),
>
> combinatoria decimal(8,0),
>
> tipo_documento char(10),
>
> correl_calce char(10)
>
> default '',
>
> fecha_calce date,
>
> ind_calce_temp char(1),
>
> descripcion char(30),
>
> debe_mn decimal(16,2)
>
> default 0.00,
>
> haber_mn decimal(16,2)
>
> default 0.00,
>
> moneda_original char(10),
>
> debe_mn_a_me decimal(16,2)
>
> default 0.00,
>
> haber_mn_a_me decimal(16,2)
>
> default 0.00,
>
> debe_me decimal(16,2)
>
> default 0.00,
>
> haber_me decimal(16,2)
>
> default 0.00,
>
> debe_tot_me decimal(16,2)
>
> default 0.00,
>
> haber_tot_me decimal(16,2)
>
> default 0.00,
>
> ind_mov_acm char(1),
>
> fecha_mov date,
>
> folio_interno decimal(10,0),
>
> nro_solicitud char(7)
> );
>
> revoke all on "xsic".con_movcom from "public" as "xsic";
>
> create index "xsic".cuenta_comprobante on "xsic".con_movcom (cuenta,
>
> fecha,correlativo,tipo_comprobante,empresa) using btree ;
>
> create index "xsic".i11_con_movcom on "xsic".con_movcom (cuenta,
>
> correl_calce,empresa) using btree ;
> create index "xsic".i12_con_movcom on "xsic".con_movcom (correl_calce,
>
> cuenta,empresa) using btree ;
> create index "xsic".i2_con_movcom on "xsic".con_movcom (combinatoria,
>
> empresa) using btree ;
> create index "xsic".i3_con_movcom on "xsic".con_movcom (correlativo,
>
> tipo_comprobante,fecha,ano,cuenta,origen,combinatoria,empresa)
>
> using btree ;
> create index "xsic".i4_con_movcom on "xsic".con_movcom (cuenta,
>
> referencia,calce_analisis,estado,combinatoria,empresa) using
>
> btree ;
> create index "xsic".i5_con_movcom on "xsic".con_movcom (fecha,
>
> ano,estado,cuenta,empresa) using btree ;
> create index "xsic".i8_con_movcom on "xsic".con_movcom (cuenta,
>
> mes,ano,empresa,correlativo) using btree ;
> create index "xsic".idx_analisis_prv on "xsic".con_movcom (cuenta,
>
> referencia,fecha,empresa,correl_calce) using btree ;
> create index "xsic".idx_cuentafecha on "xsic".con_movcom (cuenta,
>
> fecha,correl_calce,empresa) using btree ;
> create index "xsic".idx_movfec2 on "xsic".con_movcom (cuenta,fecha_calce,
>
> correl_calce,empresa) using btree ;
> create index "xsic".ind1_con_movcom on "xsic".con_movcom (cuenta,
>
> combinatoria) using btree ;
> create index "xsic".ind7_con_movcom on "xsic".con_movcom (correlativo,
>
> tipo_comprobante,cuenta,combinatoria) using btree ;
> create index "xsic".ind9_con_movcom on "xsic".con_movcom (cuenta,
>
> origen,mes,ano,empresa) using btree ;
> create index "xsic".ipru_con_movcom on "xsic".con_movcom (ano,
>
> mes,cuenta,empresa) using btree ;
>
> DATABASE sifco;
> SET PDQPRIORITY 0;
> UPDATE STATISTICS MEDIUM FOR TABLE con_movcom DISTRIBUTIONS ONLY;
> UPDATE STATISTICS HIGH FOR TABLE con_movcom (ano) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (ano, mes, cuenta, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom (fecha) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (fecha, ano, estado, cuenta,
> empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom (correlativo) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (correlativo, tipo_comprobante,
> fecha, ano, cuenta, origen, combinatoria, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom ( cuenta ) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (correlativo, tipo_comprobante,
> cuenta, combinatoria);
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, mes, ano, empresa,
> correlativo);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom ( mes) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, fecha, correlativo,
> tipo_comprobante, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom ( correl_calce ) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, fecha, correl_calce,
> empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom ( referencia ) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, referencia, fecha,
> empresa, correl_calce);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom ( calce_analisis )
> DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, referencia,
> calce_analisis, estado, combinatoria, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom ( origen ) DISTRIBUTIONS ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, origen, mes, ano,
> empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom ( combinatoria ) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, combinatoria);
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, correl_calce, empresa);
> UPDATE STATISTICS HIGH FOR TABLE con_movcom ( fecha_calce ) DISTRIBUTIONS
> ONLY;
> UPDATE STATISTICS LOW FOR TABLE con_movcom (cuenta, fecha_calce,
> correl_calce,
> empresa);
> UPDATE STATISTICS LOW FOR TABLE con_movcom (combinatoria, empresa);
> UPDATE STATISTICS LOW FOR TABLE con_movcom (correl_calce, cuenta, empresa);
>
>
>
> *******************************************************************************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>

--bcaec50166b795aab804a4338fc9

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.