Details

    • Task
    • Resolution: Fixed
    • Trivial
    • 2.5.2
    • 2.5.0
    • None
    • Security Level: Public
    • None

    Description

      EXAMPLES
      The following will create a file with 3 queries and 5 threads alternating between them. It also creates indexes on the travel-sample bucket

      cbc n1ql -U couchbase://192.168.72.101/a_bucket 'CREATE INDEX ix_name ON `travel-sample`(name)'
      cbc n1ql -U couchbase://192.168.72.101/a_bucket 'CREATE INDEX ix_country ON `travel-sample`(country)'

      cat queries.txt <<EOF

      {"statement":"SELECT country FROM `travel-sample` WHERE `travel-sample`.country = \"United States\""} {"statement":"SELECT name FROM `travel-sample` LIMIT 10"} {"statement":"SELECT country, COUNT(country) FROM `travel-sample` GROUP BY country"}

      EOF

      cbc-n1qlback -U couchbase://192.168.72.101/a_bucket -t 5

      I guess you intended to change the last line to be:
      cbc-n1qlback -U couchbase://192.168.72.101/a_bucket -t 5 -f path_to_queries.txt

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            mnunberg Mark Nunberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty