-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add scripts to automatically grow datasets #81
Conversation
Example Usage
Vehicles get added every second, and dealers get added every 5 seconds. REST API URLs are set within the script. |
cc @pcgeek86 |
We can see how many records returned easily by monitoring the API https://stedolan.github.io/jq/download/
|
|
||
|
||
def main(): | ||
app_url="http://ec2-54-237-204-239.compute-1.amazonaws.com:32787/dealerships" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be abstracted out to be excepted as input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
print(r.status_code) | ||
|
||
def main(): | ||
dealer_url="http://ec2-54-237-204-239.compute-1.amazonaws.com:32787/dealerships" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be abstracted out to be excepted as input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
def main(): | ||
dealer_url="http://ec2-54-237-204-239.compute-1.amazonaws.com:32787/dealerships" | ||
vehicle_url="http://ec2-54-237-204-239.compute-1.amazonaws.com:32787/vehicles" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be abstracted out to be excepted as input?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
…this, eliminate the time sleeps as it was not adding data fast enough
rethink_db starts about 50MB with our base snapshot, been running for about 20 min and its at 70M. Slow road, but eventually we can grow to GB size.
|
cc @pcgeek86 you can untar this into also, im still working on growing the dataset so its at least 1G |
It was also hard to get the size from using
|
…a list of vehicles and dealers without drilling down or hitting timeouts on datasets over 1 million records
dataimport
initial snapshot.fake factory
for names and usesvehicle
inventory to add more vehiclesFixes #32
Fixes #49