Sha256: ef943994145848dfef41569fea61ee3db941dfaae4ea1127cc034f8977fc1311

Contents?: true

Size: 411 Bytes

Versions: 31

Compression:

Stored size: 411 Bytes

Contents

CREATE OR REPLACE FUNCTION benchmark_write(
  _stream_name varchar,
  _cycles int DEFAULT 1000
)
RETURNS void
AS $$
BEGIN
  FOR i IN 1.._cycles LOOP
    -- RAISE NOTICE '%', i;
    PERFORM write_message(gen_random_uuid()::varchar, _stream_name::varchar, 'SomeType'::varchar, '{"attribute": "some value"}'::jsonb, '{"metaAttribute": "some meta value"}'::jsonb);
  END LOOP;
END;
$$ LANGUAGE plpgsql
VOLATILE;



Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
evt-message_store-postgres-database-1.1.0.2 database/benchmark_write.sql
evt-message_store-postgres-database-1.1.0.1 database/benchmark_write.sql
evt-message_store-postgres-database-1.1.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-1.0.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.11.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.10.1.3 database/benchmark_write.sql
evt-message_store-postgres-database-0.10.1.2 database/benchmark_write.sql
evt-message_store-postgres-database-0.10.1.1 database/benchmark_write.sql
evt-message_store-postgres-database-0.10.1.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.10.0.1 database/benchmark_write.sql
evt-message_store-postgres-database-0.10.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.9.0.1 database/benchmark_write.sql
evt-message_store-postgres-database-0.9.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.8.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.7.1.1 database/benchmark_write.sql
evt-message_store-postgres-database-0.7.1.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.7.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.6.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.5.0.0 database/benchmark_write.sql
evt-message_store-postgres-database-0.4.1.0 database/benchmark_write.sql