Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section


Primary key constraint behavior.


[SQL]    IdKey=n


The value n may be 1 or 0:

  • 1 (true) - When a Primary Key constraint is specified, it does not also become the IDKey index in the class definition.

  • 0 (false) - A Primary Key constraint specified also becomes the IDKey index in the class definition; this generally gives better performance, but means that the Primary Key fields cannot be updated.



Range of Values

0 or 1. The default is 1.

Management Portal

On the page System Administration > Configuration > SQL and Object Settings > General SQL Settings, for the Are Primary Keys Created through DDL not ID Keys setting, choose Yes (true) or No (false).

FeedbackOpens in a new window