Skip to content
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 a tool to get rid of stale orders from DB #528

Closed
ro31337 opened this issue Feb 25, 2017 · 0 comments
Closed

Add a tool to get rid of stale orders from DB #528

ro31337 opened this issue Feb 25, 2017 · 0 comments

Comments

@ro31337
Copy link
Owner

ro31337 commented Feb 25, 2017

There are plenty of stale orders in Firebase database:

image

We don't need them anymore, most of them are stale. "Orders table" should be lean, so it won't load the app too much, especially in regions with high concentration of people willing to order a ride.

Add a tool to copy stale orders from orders "table" to staleOrders "table".

It's recommended to run this script in production every 1-3 days.

ro31337 added a commit that referenced this issue Feb 26, 2017
ro31337 added a commit that referenced this issue Feb 26, 2017
* #528 Add script to purge stale orders

* #528 Add purge tool to package.json and update doc
@ro31337 ro31337 closed this as completed Feb 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant