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