API Reference / API Parameters / allowCompressionOfIntegerArray

allowCompressionOfIntegerArray

Type: boolean
Engine default: false
Parameter syntax
'allowCompressionOfIntegerArray' => true|false

Can be used in these methods:

About this parameter

Enables compression of large integer arrays.

In data-intensive use-cases, we recommended enabling this feature to reach a better compression ratio on arrays exclusively containing non-negative integers (as is typical of lists of user IDs or ACLs).

Usage notes:

  • When enabled, the compressed integer arrays may be reordered. Non-compressed arrays are left intact.

Examples

Enable compression of large integer arrays

1
2
3
$index->setSettings([
  'allowCompressionOfIntegerArray' => true
]);

Did you find this page helpful?