setAllowCompressionOfIntegerArray method

AlgoliaQuery setAllowCompressionOfIntegerArray({
  1. bool enabled = false,
})

AllowCompressionOfIntegerArray

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.

Source: Learn more

Implementation

AlgoliaQuery setAllowCompressionOfIntegerArray({bool enabled = false}) {
  assert(!_parameters.containsKey('allowCompressionOfIntegerArray'));
  return _copyWithParameters(
      <String, dynamic>{'allowCompressionOfIntegerArray': enabled});
}