Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3956256
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:20:23+00:00 2026-05-20T02:20:23+00:00

In one of the apps we support we need to have realistic demonstration data

  • 0

In one of the apps we support we need to have “realistic demonstration data” for our salespeople to use in demoing and selling.

We currently have a rake task that resets this demo data once a day, however it’s really quite inefficient and slow (it takes about 5 – 10minutes to run through)

There are definitely ways that I could optimise the code which generates the demo data (which I’m planning to do) but I’m thinking that there is probably a better way to do this altogether…

What I’m hoping to do is grab the output of the reset (i.e. grab the raw SQL). I’m hoping with this I can just make a scheduled task which resets the demo data directly to the DB everyday instead of having to load the whole Rails environment and execute a bunch of ruby methods.

This way I can only run the slow task when the nature of the demo data changes (which is quite rare) in order to update my SQL.

Is this the best approach? How can I grab the SQL in a nice format?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:20:24+00:00Added an answer on May 20, 2026 at 2:20 am

    It seems to be a good solution! if you have no asset at all simple make a dump a.e. in
    mysql

    mysqldump -uUSER -pPASSWORD [other params] DATABASE > yourdumpfile.sql
    

    and to restore

    mysql -uUSER -pPASS DATABASE < yourdumpfile.sql
    

    here a usefull rake task that you could use.
    bye

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We currently use LoadRunner for performance testing our web apps, but we also have
Our database is currently at 64 Gb and one of our apps started to
I have built 2 apps: one for iPhone, one for iPad. They both build
In one of my Apps I do have a FileCache in a library project.
So, I am trying to add iPhone 5 support to one of my apps.
Our sales team often needs to give demos of apps currently in development. We've
I currently have an app which is set to support Android 2.2 and have
i just have hi resolution image for one of the apps, i am just
There are lots of secrets that apps have that need to be secured in
I have a website running on PHP and i need to develop apps for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.