name: "search-asm-ftsb-1M-enwiki_abstract-hashes-fulltext-aggregate-sortby-limit-0-100-no-trim"
description: "
             - name: enwiki-abstract [details here](https://github.com/RediSearch/ftsb/blob/master/docs/enwiki-abstract-benchmark/description.md),
                     from English-language Wikipedia:Database page abstracts.
                     This use case generates 3 TEXT fields per document, and focusses on full text queries performance.
                     Specifically for this testcase:
                      - Type (read/write/mixed): read
                      - Query type: FT.AGGREGATE with SORTBY and LIMIT
                      - Query sample: FT.AGGREGATE with sorting by abstract field
             - total docs: 5.9 million
             - fields per doc: 3 TEXT sortable fields
             - average doc size: 227 bytes
             - FT.AGGREGATE variation of the FT.SEARCH fulltext-sortby benchmark

             This use case aims to test how the slots filtering in the result processor while a shard has unowned slots affects performance in this transitional state.
             "

metadata:
  component: "search"
setups:
  - oss-cluster-02-primaries
  - oss-cluster-04-primaries
  - oss-cluster-04-primaries-threads-6

dbconfig:
  - dataset_name: "ftsb-1M-enwiki_abstract-hashes"
  - init_commands:
    - '"FT.CREATE" "enwiki_abstract" "ON" "HASH" "SCHEMA" "title" "text" "SORTABLE" "url" "text" "SORTABLE" "abstract" "text" "SORTABLE"'
    - '"DEBUG" "ASM-TRIM-METHOD" "none"'
  - asm_cluster_state:
    - shards:
      - - start: 0
          end: 2500
        - start: 5000
          end: 7500
        - start: 10000
          end: 12500
        - start: 15000
          end: 16000
      - - start: 2501
          end: 4999
        - start: 7501
          end: 9999
        - start: 12501
          end: 14999
  - tool: ftsb_redisearch
  - parameters:
    - workers: 64
    - reporting-period: 1s
    - input: "https://s3.amazonaws.com/benchmarks.redislabs/redisearch/datasets/1M-enwiki_abstract-hashes/1M-enwiki_abstract-hashes.redisearch.commands.SETUP.csv"
clientconfig:
  benchmark_type: "read-only"
  tool: memtier_benchmark
  arguments: "--test-time 120 -c 32 -t 1 --hide-histogram --command 'FT.AGGREGATE enwiki_abstract * SORTBY 2 @abstract ASC LOAD * LIMIT 0 100'"
