3

I've successfully set up a drupal-clean test build on my Ubuntu 19.04 machine using buildkit, amp config and amp test and chose mysql_ram_disk rather than mysql_dsn.

My intent was to have a semi-permanent dev environment.

Did I make the wrong choice? Should I use mysql_ram_disk for such an environment?

1 Answer 1

3

It's a little bit hard to answer without more info but generally the ram disk isn't going to save your data unless you do something extra, so it's more useful for one-off tests or something where you need speed over permanence, like running unit tests (which it mentions in the readme). I don't use buildkit since I'm on windows but I do switch over to a ramdisk when running tests since it's way faster when it keeps needing to load/reset the database. I wouldn't recommend a ramdisk for setting up a semi-permanent dev environment that you plan to work on regularly, unless you're willing to regularly dump the data somewhere and reload it later, or automate that at startup/shutdown, and risk losing something in the middle.

3
  • right so the ram_disk is loaded into ram and disappears when I shut my machine down. Duh on me. So, I made the wrong choice, since my goal is a semi-permanent dev environment. Back to amp config set up. Thanks! Commented Sep 10, 2019 at 22:36
  • From the readme - "The data will be wiped after rebooting or unmounting." Commented Sep 10, 2019 at 22:54
  • Edited the text to add more info about my intent/goal. Commented Sep 11, 2019 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.