Save 
Join IIUG
 for   
 

Informix News
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


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

IIUG Español

RE: Digest 2927 - 2929

Posted By: Nestor Dario Amaya Pineda
Date: Tuesday, 20 July 2010, at 8:07 p.m.

Hola a todos,

Estoy muy de acuerdo con las recomendaciones que te han dado.

1. Lo primero es que estadisticas se deben hacer todos los dias, pero es importante tener una estrategia para esto. Es decir no todas las tablas requieren estadisticas diarias (las maestras) pero las de movimiento si requieren a diario. Ahora otra cosa dependiendo del volumen da data se puede hacer high, medium or low. Ademas dependiendo de la version de informix que tengas puedes hacer estadisticas por los campos de los indices mas importante.

2. Un query puede mejorar mucho cuando cambias de posición las condiciones del where, como ya te lo explicaron.

Buena suerte,

Cordialmente,
Nestor Dario Amaya P

> To: forum.subscriber@iiug.org
> From: iiug-esp@iiug.org
> Subject: [IIUG Espanol:] Digest 2927 - 2929
> Date: Tue, 20 Jul 2010 16:00:05 -0400
>
> The following new messages have been posted on IIUG Espanol at
> <http://www.iiug.org/forums/iiug-esp/index.cgi>.
>
>
> *******************************************************************************
>
> #2927: Re: Consultas en Informix (GUSTAVO ECH....)
> #2928: Re: Consultas en Informix (Ada Caorsi)
> #2929: Re: Consultas en Informix (CARLOS LINO)
>
>
> *******************************************************************************
>
> MESSAGE: (#2927) Re: Consultas en Informix
> <http://www.iiug.org/forums/iiug-esp/index.cgi?rev=2927>
> AUTHOR: GUSTAVO ECH....
> DATE: Monday, 19 July 2010, at 6:24 p.m.
>
> Reply To: (#2923) Consultas en Informix
> Author: CARLOS LINO
> Date: Thursday, 8 July 2010, at 12:25 p.m.
>
> Hola Carlos!
>
> Estoy de acuerdo con la respuesta de Julio, en la que te recomienda crear
> índices compuestos por el identificador de cliente y la fecha para que la
> búsqueda sea más eficiente.
> Pero con sólo eso no basta, ya que al acceder a los datos según la premisa de
> tu consulta SQL, estás dejando para el último la fecha:
>
> "select CpcFec,CpcMon,sum(CpcSpc),sum(CpcSal),count(Cpcdoc) from movcpc where
> CpcCli='1804' and cpcsal > 0 and cpcfec<='02/06/2010'
> group by cpcfec,cpcmon order by cpcfec,cpcmon"
>
> Yo, aprovechando que tienes ya creados los índices compuestos la armaría así:
>
> "select CpcFec,CpcMon,sum(CpcSpc),sum(CpcSal),count(Cpcdoc) from movcpc where
> CpcCli='1804' and cpcfec<='02/06/2010' and cpcsal > 0
> group by cpcfec,cpcmon order by cpcfec,cpcmon"
>
> De esta manera no fuerzas al motor a que primero busque por cliente, luego se
> fije en el saldo y recién entonces tenga en cuenta la fecha. Como está armada
> la segunda consulta (que es solamente un cambio de términos), encuentra el
> cliente y la fecha rápidamente y recién evalúa el saldo.
>
> Sé bueno, y cuéntanos cómo te ha ido.
>
> Gustavo Echenique
>
>
> *******************************************************************************
>
> MESSAGE: (#2928) Re: Consultas en Informix
> <http://www.iiug.org/forums/iiug-esp/index.cgi?rev=2928>
> AUTHOR: Ada Caorsi
> DATE: Monday, 19 July 2010, at 6:47 p.m.
>
> Reply To: (#2927) Re: Consultas en Informix
> Author: GUSTAVO ECH....
> Date: Monday, 19 July 2010, at 6:24 p.m.
>
> Me encuentro de licencia. Por razones de oficina, remitir correo a
> mhernando@cjppu.org.uy. Gracias.
>
>
> *******************************************************************************
>
> MESSAGE: (#2929) Re: Consultas en Informix
> <http://www.iiug.org/forums/iiug-esp/index.cgi?rev=2929>
> AUTHOR: CARLOS LINO
> DATE: Tuesday, 20 July 2010, at 3:00 p.m.
>
> Reply To: (#2927) Re: Consultas en Informix
> Author: GUSTAVO ECH....
> Date: Monday, 19 July 2010, at 6:24 p.m.
>
> Muchas Gracias gustavo, aora si que lo hizo rapido solo tardo 1 seg.
> Pero me gustaria saber cuando es necesario hacer el update stadistics para las
> tablas y en que momento hacerlas? hacerlas seguido trae problemas?.
>
>
> *******************************************************************************
>
> This is an automatically-generated notice. If you'd like to be removed from
> the mailing list, please unsubscribe in the IIUG Member Area at
> http://www.iiug.org or email forummaster@iiug.org .

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

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

IIUG Español is maintained by Administrator with WebBBS 5.12.