for   
Save 
Save 
   Join IIUG  

Informix News
16 October 08 - VendorRate - Informix Earns Top Customer Satisfaction Score on VendorRate in Q3... Read
14 August 08 - IIUG.org - Sellout Expected for the 2009 IIUG Informix Conference... Read
29 April 08 - IntelligentEnterprise.com - IBM Informix Upgrade Enhances Clustering, Database Management... Read
29 April 08 - itweek.com - IBM 'Cheetah 2' mauls data costs... Read
28 April 08 - eWeek.com - IBM Uncages Cheetah 2 Data Server... Read
28 April 08 - CNNMoney.com - IBM Helps Clients Reduce Data Management Costs With New Informix Dynamic Server... Read
09 April 08 - CNNMoney.com - MediaSpan Embeds IBM Informix Dynamic Server Software for Delivering News to Print, Web and Wireless Devices... Read
08 April 08 - IT-Director.com - Informix seeks developers... Read
18 February 08 - marketwire.com - Icarus Studios Partners With IBM to Upgrade Performance, Availability for Its Online Games... Read
17 January 08 - eWeek.com - IBM Adds Mac Support to IDS for Higher Education... Read
17 January 08 - informationweek.com - Lotus Notes For iPhone Signals Closer Ties Between IBM, Apple... Read
16 January 08 - marketwire.com - IBM Informix Dynamic Server to Deliver Support for Mac OS X... Read
16 January 08 - internetnews.com - IBM's IDS to Support Mac Platform... Read
28 June 07 - REG Developer - IBM and Informix tie down Cheetah... Read
27 June 07 - CBRonline.com - IBM corrects its own Informix customer figures... Read
14 June 07 - vnunet.com - IBM changes spots with Informix 'Cheetah' database... Read
14 June 07 - eChannelLine - IBM expands scope for IDS... Read
14 June 07 - Resellernews - IBM: Informix database alive and kicking... Read
13 June 07 - DB2 Magazine - Cheetah is now out of the gate... Read
12 June 07 - IBM - IDS 11 release announcement (pdf)... Read
12 June 07 - ChannelWeb Network - IBM Uncages IDS 11, Aka Cheetah, Database... Read
12 June 07 - eWeek.com - IBM's 'Cheetah' Ready to Pounce... Read
12 June 07 - InformationWeek - IBM Unleashes 'Cheetah' Database... Read
12 June 07 - WebWire - IBM Strengthens Database Portfolio With New Informix Dynamic Server... Read
12 June 07 - Intelligent Enterprise - IBM Unveils Informix Upgrade... Read
12 June 07 - ComputerWeekly.com - IBM's Cheetah IDS makes leap to better data centre clustering... Read
12 June 07 - ebiz - IBM Unveils Next Generation Informix Dynamic Server... Read
12 June 07 - computerworld.com - Will 'Cheetah' help IBM's Informix chase down market share?... Read
12 June 07 - Internetnews.com - No Data Can Outrun This 'Cheetah'... Read
12 June 07 - de.internet.com - IBM neuer Datenbank-Server mit Codenamen Cheetah ist fertig... Read
12 June 07 - verifox.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - golem.de - Informix 11 vorgestellt... Read
12 June 07 - Computerwoche.de - IBM stellt neue Informix-Version vor... Read
12 June 07 - IBM.de - IBM stärkt Datenbank-Portfolio mit neuem Informix Dynamic Server... Read
12 June 07 - Heise - IBM gibt Informix 11 frei... Read
25 May 07 - Taiwan.CNET.com - Local Taiwan Informix user group established... (Chinese language) ... Read
18 May 07 - ChannelWeb Network - IBM Musters Partners For Cheetah Release... Read
18 May 07 - eWeek.com - IBM Looks to 'Cheetah' to Speed Up Blade Servers... Read
7 May 07 - DB2 Magazine - SQL Shortcuts - Use these tricks to generate IDS SQL scripts... Read

Previous news items
 

Home Member Area About IIUG


Resources
IIUG Insider
IIUG Hotspots
IBM-Informix Links
IIUG RSS Feeds
Software Repository
Informix Products
Online Resources
Informix Library
Informix Books
IIUG Banners
Discussion
Technical Special
  Interest Groups

Other Discussion
Community
Events
Webcasts/Chat w Lab
IIUG TV
IIUG Sponsors
Informix Business Directory
IIUG Press Partners
Local User Groups
Rate the Vendor
Job Board
Fun Stuff

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

Datablade List Forum

RE: Informix Web Datablade speed

Posted By: Donald Payne
Date: Wednesday, 23 July 2003, at 4:09 p.m.

In Response To: RE: Informix Web Datablade speed (jonathan.little@phones4u.co.uk)

You're right, running a SQL query thru Web DataBlade <?MISQL> tag is
always slower than through a client app, sometimes 10x.
I agree with previous writers about (1) Web Blade 4.13+ faster than 4.11;
(2) stored procedure faster than dynamic SQL.

If you still need dynamic SQL, some ideas:

- Try to minimize the interpretation processing work done by the Web Blade
between the <?MISQL> and <?/MISQL> tags. Sometimes you can push that work
into the SQL statement itself. For example, IDS 9.20+ has enhancements
that can do work that you previously had to do in procedural Web Blade
code:

- Functions: UPPER, LOWER, INITCAP, REPLACE, SUBSTR, LPAD, RPAD,
NVL, DECODE, TO_CHAR, TO_DATE
- UNION operator in CREATE VIEW statement
- CASE expression
Can replace code in Web Blade:
$(UPPER), $(LOWER), $(REPLACE), $(SUBSTR), $(ISNULL), $(CONCAT),
$(IF), $(+), $(FIX), etc., etc.

The ideal / extreme case is

<?MISQL SQL="$sql">$1
<?/MISQL>

- Caching of Web Blade code: if you have snippets of code that are
executed in several places, you could write them once in a Web Blade
user-defined (dynamic) tag. This has the side benefit that you can turn
on caching of user-defined tags (In the App Dev Guide version 4.13, see
chapter 9 "Using Dynamic Tags in AppPages", section "Dynamic Tag
WebExplode() Variables", variable MI_WEBTAGSCACHE on page 9-8; In the
Admin Guide version 4.13, see Chapter 9 "Improving Performance", section
"AppPage Caching", subsection "Global Cache For Dynamic Tags and
User-Defined Routine Tags" on page 9-5). Though the tag cache doesn't
directly make <?MISQL> tags execute faster, it saves the overhead (esp.
I/O) of webExplode() having to SELECT the tag from the wbtags table before
exploding it. Web Blade now has a Global Tag cache: one cache of dynamic
tags per database, instead of one per user session. Should save memory in
IDS.

- If you have <?MISQL> tags that merely invokes a SQL function, e.g.
<?MISQL SQL="SELECT CURRENT FROM SysTables WHERE tabId =
1;">$1<?/MISQL>
then you can save the parsing time by creating a UDR tag. For details,
see the Web Blade App Dev Guide, chapter 9 "Using Dynamic Tags in
AppPages". In the above case the UDR would be an SPL function, something
like:

CREATE FUNCTION now()
RETURNING DATETIME YEAR TO SECOND
;
RETURN CURRENT;
END FUNCTION;

You would create the UDR tag using DDW. The tag would be invoked
something like
<?now>
[Note: In the 4.13 App Dev Guide, the syntax diagram on page 10-6 for
passing parameters to the tag disagrees with the example on page 10-7. I
believe the example is correct.]

- Also note: about the SQL statement cache in IDS 9.20+: I don't believe
that SQL executed in a UDR (i.e. <?MISQL> tags processed by WebExplode())
are cached.

Thanks and Regards,
- Don

Donald E. Payne -- Sr. IT Specialist
OLTP Practice, Data Management Services, Software Group, IBM
phone / fax / pager 1-212-745-4380 (internal 243-4380)
mobile office: New York, NY
mailing address: 13 Myrtle Ave., Huntington, NY 11743-3506
Certified IBM Informix Professional
http://www.ibm.com/software/data




"jonathan.li...." <jonathan.little@phones4u.co.uk>
Sent by: forum.subscriber@iiug.org
07/23/2003 07:25 AM


To: datablade-list@iiug.org
cc:
Subject: RE: Informix Web Datablade speed [36]



Carin,

We found using stored procedures called from the Web Pages in the Informix
database were 10x faster than ASP pages.

Are you coding stored procedures and executing them from the web page or
entering select MISQL statements within the web page?



Jonathan

-----Original Message-----
From: CARIN PRETORIUS [mailto:carin@iscw.agric.za]
Sent: 23 July 2003 11:37
To: datablade-list@iiug.org
Subject: Infomix Web Datablade speed [35]


We use the following:

Hardware: Sun Enterprise 450
RAM: 1GB
CPU Processors: 2 x 250 MHz
Hard Drives: 4.2 GB internal
Network: 2 x 100BT
Operating System: Sun Solaris version 2.7
Database: IBM Informix version 9.2.1 uc4
Blades: Informix Web Datablade version web.4.11.uc2
Excalibur Text Search
GIS: ArcInfo version 8.0
ArcView
Spatial Analyst
Spatial Database: SDE version 4
Web Server: I-Planet version 4.0
Map Server: ArcIMS version 3.0

I recently did a test and found that the exact same query in ASP and JSP
are
much faster that the same query using web datablade. What can be the
problem as all my development up to now have been in web datablade and I
need to find a way to correct and upgrade the speed?

Please help!


*************************************************************
This email, and any attachment, is confidential. If you have
received it in error, please delete it from your system.

Do not use or disclose the information in any way, and notify
the sender immediately.

The contents of this message may contain personal views which
are not the views of Phones4U Ltd or any other company within
the Caudwell Group, unless specifically stated.

You may not disclose any information contained herein unless
disclosure is specifically allowed or the information is
publicly available.
*************************************************************






Messages In This Thread

  • Infomix Web Datablade speed
    CARIN PRETORIUS -- Wednesday, 23 July 2003, at 6:37 a.m.
    • RE: Informix Web Datablade speed
      jonathan.little@phones4u.co.uk -- Wednesday, 23 July 2003, at 7:25 a.m.
      • RE: Informix Web Datablade speed
        Donald Payne -- Wednesday, 23 July 2003, at 4:09 p.m.
    • Re: Infomix Web Datablade speed
      paul@oninit.com -- Wednesday, 23 July 2003, at 8:02 a.m.

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

Datablade List Forum is maintained by Administrator with WebBBS 5.12.

©2001 - 2007 International Informix Users Group.   All rights reserved.     Terms of use    
*** Powered By IBM Informix Dynamic Server V10.00 ***