Generating a Database
Use a template to generate large amount of data for a database.
Once you have a template ready it’s time to generate a database out of it. Following fields are needed while generating the database:
Name of database – This is the name of your database. The name will be used as a file name or name of the collection, depending upon your target mode.
Number of Records - Number of documents to be generated for your database. You will see a number of limits based on your account type.
Reference Date - This field specifies the time which should be used when the first record is generated. If you don’t care about time values, you could leave it empty. If you’ve used date functions ( like
hammertime(), etc) in your template then you’ll get random dates in the database.
If you passed a date in this field then this will be your reference date (date of the first document). All further dates in the database will get incremented for further records using values of Interval and Time Unit fields.
Interval - You can add interval of date. By default, its value is 1.
Time Unit - You can select a unit from the dropdown. By default, its value is ‘day’.
E.g., if you’ve used the
date() function in your template and you pass 01/01/2017 12:50 AM and you choose ‘Month’ from time unit and add 2 in interval field. Then that date field be populated as,
1st document - 01/01/2017 12:50 AM
2nd document - 01/03/2017 12:50 AM
3rd document - 01/05/2017 12:50 AM
4th document - 01/07/2017 12:50 AM
and so on.
You could choose following:-
Store and download as JSON: all the generated values will be stored in a text file and will be downloaded. They could also be downloaded at a later stage by going to the Download section. Downloads are periodically cleaned up, so please make sure that you save those files somewhere.
Store In External MongoDB Database: if you would like to directly feed all generated records into a publicly accessible MongoDB database, you could do so. Choose this storage option and specify the complete MongoDB URL, e.g.:
Don’t have a MongoDB database? You could start with a free instance at https://mlab.com who provide 500 MB of data storage free. Looking for a MongoDB based IoT analytics tool? Check out https://slamdata.com.
Store In ElasticSearch Instance: the data could be directly fed into Elasticsearch instance. Check out our “Exporting Data to an ElasticSearch Instance” guide to understand how to do that.
In future, we will be adding more and more storage methods. If you are interested in something specific, contact us to find out.