🎉 Try the public beta of the new docs site at algolia.com/doc-beta! 🎉
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.
  • This works for top-level attributes and nested attributes (keys with values that are an array of integers)

Examples

Enable compression of large integer arrays

1
2
3
$index->setSettings([
  'allowCompressionOfIntegerArray' => true
]);
Did you find this page helpful?