25.01.2015 Views

Caché Upgrade Checklists - InterSystems Documentation

Caché Upgrade Checklists - InterSystems Documentation

Caché Upgrade Checklists - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Caché</strong> 2007.1 <strong>Upgrade</strong> Checklist<br />

2.2.2.5 TuneTable And KeepUpToDate Flag<br />

<strong>Caché</strong> provides the ability to gather statistics about the contents of a table to assist in optimizing queries.<br />

The method that can be invoked by applications at runtime is: $SYSTEM.SQL.TuneTable.<br />

The fifth parameter of $SYSTEM.SQL.TuneTable is the KeepUpToDate flag. If this flag is set to 1,<br />

<strong>Caché</strong> des not mark the classes and tables as out of date when it modifies the values for ExtentSize<br />

and the Selectivity.<br />

In Version 2007.1, KeepUpToDate has been extended to influence cached queries. If KeepUpToDate<br />

is set to 1, <strong>Caché</strong> will not purge cached queries as part of the TuneTable.<br />

If the flag is 0, the default, then the class is marked as not up to date and all cached queries based on<br />

the table are purged. Running TuneTable on a live system with KeepUpToDate = 0 can cause application<br />

errors if the appllication is using any queries that are removed from the cache.<br />

2.2.2.6 Changes For Sybase / SQL Server Compatibility<br />

The following changes have been made to <strong>Caché</strong> for compatibility with Sybase and SQL Server:<br />

• the command, TRUNCATE TABLE, has been added<br />

• six new functions are now available for use in expressions: CHARINDEX, DATALENGTH,<br />

REPLACE, STUFF, and SYSDATE<br />

• two additions have been made to the list of reserved words: SYSDATE, and STATISTICS<br />

2.2.2.7 New DDL Datatype Mappings<br />

As of this version, the following new datatype mappings have been added to the system set of datatype<br />

maps:<br />

External Type<br />

BINARY VARYING<br />

BINARY<br />

CHAR VARYING<br />

CHARACTER VARYING<br />

NATIONAL CHAR VARYING<br />

NATIONAL CHARACTER VARYING<br />

NATIONAL VARCHAR<br />

VARBINARY<br />

VARCHAR<br />

Maps In <strong>Caché</strong> To<br />

%Library.Binary(MAXLEN=1)<br />

%Library.Binary(MAXLEN=1)<br />

%Library.String(MAXLEN=1)<br />

%Library.String(MAXLEN=1)<br />

%Library.String(MAXLEN=1)<br />

%Library.String(MAXLEN=1)<br />

%Library.String(MAXLEN=1)<br />

%Library.Binary(MAXLEN=1)<br />

%Library.String(MAXLEN=1)<br />

18 <strong>Caché</strong> <strong>Upgrade</strong> <strong>Checklists</strong>

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

Saved successfully!

Ooh no, something went wrong!