These are chat archives for ManageIQ/manageiq/performance

17th
Nov 2017
niroy
@niroy
Nov 17 2017 13:05
@cben thanks
Jason Frey
@Fryguy
Nov 17 2017 21:40
Found a pretty useful function that some of you might be interested in if you need to generate a LOT of database data:
I just used it to create 2000000 ems_events rows, and it was simple to use:
INSERT INTO ems_events (event_type)
SELECT left(md5(i::text), 10)
FROM generate_series(1, 2000000) s(i)
the select is just an example to show how to manipulate the series number into "random" data