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

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

IDS Forum

Re: varchar performance problems

Posted By:
Date:






I know I'm getting in "late" on this thread, but I have been on vacation...

Mr. Roberts hits very accurately on the varchar issue with respect to
forward pointers. Volatile varchars have the potential of causing an
unneccesary row-split...as Bill points out, if a varchar column content is
increased, and the row will no longer fit into it's slot on the page, we
will put a 4-byte forward pointer in the front of slot, modify the slot
table high-order bit of the 2-byte size indicator (if I recall right - it's
either the size or the offset) to flag the fact that the first 4-bytes
needs to be interpreted as a forward pointer, and not data. (We "steal"
this digit away as we would never use it...on data pages it's to indicate
fwd ptrs, on index pages, to indicate a logically deleted slot (via the
delete flag)). We move the rest of the row (which could be the entire data
portion of the row) to a remainder page (which could house many remainders
from other rows). This page will have a 4-byte slot table entry for the
remainder portion of the row - this is normal...each row has a 4-byte slot
table entry. Thus, we have just added 8 bytes to the row size, when in fact
it might have been able to fit on a single page. (Rows longer than a page
can't avoid this overhead). And, the significant impact is two I/O's versus
one. '

Keep in mind that a varchar also has a 1-byte length byte at the front of
the row. A NULL varchar takes up 2 bytes of space....1 for the length byte
and 1 for the 0 in the slot.

Jack Parker also pointed out something I believe true, but have never
proven - that you can't get light scans on a varchar table. Anyone know
different?

Thanks,
Mark.


Mark Scranton
Principal Consultant/Teacher
IBM Denver

IBM Software Group - Data Management
Office: 303-773-5067
Cell: 303-929-0914
email: mscranto@us.ibm.com





"bill.robert...."
<bill.roberts@ver To: ids@iiug.org
izon.com> cc:
Sent by: Subject: Re: varchar performance problems [871]
forum.subscriber@
iiug.org


04/08/2003 12:33
PM







Clifton,
I advise listening to your DBA until (s)he proves themselves incompetent.

I discourage the use of VARCHAR, NVARCHAR, and "CHARACTER VARYING" data
types because disk is relatively cheap, many data "architects" don't
understand the implications of these data types, and developers have a
tendency to misuse them (I've actually had to defend changing schema
requests from VARCHAR(1) to CHAR(1)!!!).

The answer to the question "Do VARCHARS have a negative impact on
performance?" is:

"It depends" (credit again to Mark Scranton...or is it Dan Michaelis?).

Updates to data types can force migration of data to remainder pages. Not
only are you again using more disk than you anticipated, but updating
VARCHAR columns may result in excessive disk I/O for future reads because
the engine may find a forward pointer to a remainder page when it returns
to retrieve the data. The engine then performs additional disk I/O to read
the remainder page(s).

Review the schema of the table and ask yourself:
01. What has my DBA advised and why?
02. Why do rows in my table exceed a page in size?
03. Can some columns be moved to another table? (after all, we are
relational...IMNSHO parallel processing is better than being pointed
elsewhere...)
04. How often/likely am I to update this column?
05. At a later date might someone request that the data I'm storing in a
varying data type be indexed?

Regards,
Bill Roberts

AAIS Core Production Support, Informix DBA
Office : (813) 978-2340
Pager: (888) 423-6604
e-mail:bill.roberts@verizon.com

#####################################################
From http://publibfi.boulder.ibm.com/epubs/pdf/4364.pdf
#####################################################
Variable-Length Execution Time

When you use any of the CHARACTER VARYING(m,r), VARCHAR(m,r), or
NVARCHAR(m,r) data types, the rows of a table have a varying number of
bytes instead of a fixed number of bytes. The speed of database operations
is
affected when the rows of a table have a varying number of bytes.
Because more rows fit in a disk page, the database server can search the
table
with fewer disk operations than if the rows were of a fixed number of
bytes.
As a result, queries can execute more quickly. Insert and delete operations
can be a little quicker for the same reason.

When you update a row, the amount of work the database server must
perform depends on the number of bytes in the new row as compared with
the number of bytes in the old row. If the new row uses the same number of
bytes or fewer, the execution time is not significantly different than it
is with
fixed-length rows. However, if the new row requires a greater number of
bytes than the old one, the database server might have to perform several
times as many disk operations. Thus, updates of a table that use CHARACTER
VARYING(m,r), VARCHAR(m,r), or NVARCHAR(m,r) data can sometimes be
slower than updates of a fixed-length field. (NOTE: as well as reading the
data after the updates, but they don't mention it...WAR)

To mitigate this effect, specify r as a number of bytes that encompasses a
high
proportion of the data items. Then most rows use the reserve number of
bytes, and padding wastes only a little space. Updates are slow only when a
value that uses the reserve number of bytes is replaced with a value that
uses
more than the reserve number of bytes.





"Clifton M. Bean"

<cmbean@sbcglobal To: ids@iiug.org

.net> cc:

Sent by: Subject: Re: varchar
performance problems [868]
forum.subscriber@

iiug.org


04/08/03 11:50 AM







Varchars fields that will be or are part of an index is a BAD idea; other
than that, I don't recall any special problems with varchars. Review the
release notes of your engine to see if there are any bugs with varchars
that
may impact your system. You may even want to open a case with Informix
just
to have the engineer let you know the status of any bugs mentioned and
where
they are fixed so you can upgrade (if needed) before performing your data
conversion.

Take care.
Clifton

----- Original Message -----
From: "Bob Amy " <bamy@ssww.com>
To: <ids@iiug.org>
Sent: Tuesday, April 08, 2003 8:16 AM
Subject: varchar performance problems [863]


>
> My dba is telling me that theree are some performance problems with
> using varchars.
> We have a table that has 2133 bytes per row. This is over the 2K pages
> size, so I am suggesting that we convert several rarely used fields or
> rarely filled field to varchars.
>
> Can some of you please explain the varchar performance problem(s), and
> I'd also like to know if the over one page performance problem is worse
> or better.
>
> We are running Informix Dynamic Server Version 7.31.FD2
> Thanks
>












Messages In This Thread

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

IDS Forum is maintained by Administrator with WebBBS 5.12.