Creating a partition policy for an empty table
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
A policy for an empty table can be created without any details. The following code shows the creation of a new partition policy for an empty table:
|
The services NewPartitionPolicy( ) method expects
the name of the policy. The default allocation and default areas
are all mandatory properties. The default areas are defined as instances
of IArea( ), which are retrieved from the service.
The Table property must also be set before the
policy can be submitted to the service. The HasRange and DefaultAllocation
properties must also be set before the creation, but these have
valid default values and may not need to be set in code.
The example above creates a list partition on the employee table on the department key, and
sets the default allocation to "None" to allocate the partitions manually
later.