Techiio-author
Started by Debarghya DasSep 29, 2021

Open
Can Rails' test environment tell MySQL to be memory-only?

1 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 1 VIEWES SHARE

When I'm running my Rails rspec tests, there is a lot of interaction with the database. This is slow.

I know that the best advice to speed up testing is "reduce your database interactions". But I also wondered if I can make MySQL behave differently. The test data typically only needs to exist for a fraction of a second at a time, so there should never be much of it.

Can I tell MySQL not to write to the hard disk? Can I limit this behavior to my Rails development environment (maybe I need a separate install of MySQL server)?

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance