elastic / makelogs

109 stars 44 forks source link

Slow log creation #12

Open w33ble opened 9 years ago

w33ble commented 9 years ago
$ time makelogs -c 300k -d 5
Generating 300000 events from 2015-06-19T00:00:00+00:00 to 2015-06-29T23:59:59+00:00
......................................................................................................

created 300000 events

real    16m19.699s

This is when running ES in a constrained vm, so the slowness it really amplified. In version 1.4.1 and previous, that would take a minute or 2 at most.

w33ble commented 9 years ago

Thought it was the dynamic templates, and removing that line helped a lot (real 10m48.557s), but I don't think it's the only culprit.