14.01.2013 Views

IBM Informix Developer's Handbook - IBM Redbooks

IBM Informix Developer's Handbook - IBM Redbooks

IBM Informix Developer's Handbook - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

If you need a secured authentication method, <strong>IBM</strong> <strong>Informix</strong> Server also has two<br />

secured connection methods by way of the encrypted Communication Support<br />

Module (CSM) and single password CSM. You can use one or the other, but not<br />

both at the same time. Neither the encrypted CSM not the single password CSM<br />

method work over multiplexed connections. Enterprise Replication (ER) and high<br />

availability (HA) replication support encryption but not with CSM. Secure Sockets<br />

Layer (SSL) communications are an alternative to <strong>Informix</strong>-specific encryption<br />

CSMs. SSL encrypts data end-to-end and secures TCP/IP and Distributed<br />

Relational Database Architecture (DRDA) connections between two points<br />

over a network. For setup information, see the developerWorks® article Protect<br />

your data with Secure Sockets Layer support in <strong>Informix</strong> Dynamic Server, Part 1:<br />

Setting up SSL support in IDS, which is available at:<br />

http://www.ibm.com/developerworks/data/library/techarticle/dm-0912securesockets1<br />

/index.html<br />

Programming and user process considerations<br />

Any SQL or stored procedure call is parsed and optimized when the engine first<br />

receives the statement. Parsing and optimization methods require a little extra<br />

running time. If you can minimize this time, you can speed up query execution.<br />

The following factors can speed up execution time:<br />

► If you cannot optimize the query syntax in advance, have the DBA set the<br />

OPTCOMPIND parameter in the onconfig file to 2 to use distribution data<br />

(determined by Update statistics usage).<br />

► If you can optimize all of your query syntax expressions in advance, you might<br />

want your DBA to consider using OPTCOMPIND 1 or 2.<br />

► If the same statement is executed multiple times, it is placed in a procedure or<br />

dictionary cache. Cache statements run faster.<br />

► If the statement is a prepared statement, the statement can be shared by<br />

multiple users and does not need reparsing or optimizing.<br />

► When a statement execution thread is ready to run, it is scheduled to run on a<br />

CPU VP. On a system with multiple processors where each CPU VP maps to<br />

a physical processor, multiple statements can run concurrently on multiple<br />

CPU VPs. Take advantage of multiple CPUs whenever possible by means of<br />

concurrent queries, parallel subqueries, and the degree of parallelism.<br />

► When a statement runs on the CPU VP, it is given a brief block of time to run.<br />

At the end of the time unit, it is placed into a VP wait cycle, and the next<br />

statement thread gets a time block on the VP queue. This use of a wait cycle<br />

gives all executing processes an opportunity to make progress, regardless of<br />

the number of processes that are running.<br />

Chapter 1. Introduction to <strong>IBM</strong> <strong>Informix</strong> 19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!