canary-load-generator.td 743 B

123456789101112131415161718192021
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. > DROP SOURCE IF EXISTS generator1 CASCADE;
  10. > CREATE CLUSTER canary_load_generator SIZE '3xsmall';
  11. > CREATE SOURCE generator1 IN CLUSTER canary_load_generator FROM LOAD GENERATOR COUNTER;
  12. > CREATE MATERIALIZED VIEW generator_view1 AS SELECT COUNT(*) AS cnt FROM generator1;
  13. > CREATE DEFAULT INDEX ON generator_view1;
  14. > SELECT cnt > 0 FROM generator_view1;
  15. true