Statping: There should be a way to disable loading of the sample data

Created on 28 Mar 2019  路  3Comments  路  Source: statping/statping

What would you like on Statping?
An option to disable loading of sample date

Describe the solution you'd like
Can be done by adding another environment variable (e.g. SAMPLE_DATA=false)

Describe alternatives you've considered
Another solution could be reducing the number of writes (using transactions) to database so that the loading is fast

Is your feature request related to a problem? Please describe.
Starting statping without database sometimes take too long (> 3 minutes) which results in the impossibility to start an app on a cloud (Heroku, Cloud Foundry, etc)

Most helpful comment

This issue has been fixed in version 0.80.54+ during the setup process (sample data toggle switch). I'll input that SAMPLE_DATA environment variable though.

All 3 comments

This issue has been fixed in version 0.80.54+ during the setup process (sample data toggle switch). I'll input that SAMPLE_DATA environment variable though.

Is the SAMPLE_DATA environment variable also implemented for the Docker version?

@Freekers doesn't look like

related file I guess: https://github.com/hunterlong/statping/blob/master/core/configs.go

Was this page helpful?
0 / 5 - 0 ratings