Collaborative database development with Spawn

Spawn enables teams to collaborate effectively to solve database performance problems

Andrew Farries
Spawn DB
3 min readMar 22, 2021

--

Photo by Marvin Meyer on Unsplash

Database performance problems can be a pain to deal with. They frequently involve large amounts of data and require a lot of iteration to get the precise data set required to trigger the issue. And once you’ve got a reproduction database, what then? How do you share that reproduction and collaborate on the solution?

Spawn enables a workflow that makes it much easier to collaborate on reproducing and fixing database performance issues. Iterate on the reproduction by saving revisions of your database state and sharing the resulting image with people on your team with the know-how to fix the problem.

Reproduce

Reproducing a performance problem will likely be an iterative process. Using Spawn we can start from a backup of a database and use it to create a data image:

Spawn supports multiple database engines besides mysql- see the full list. Creating images from scripts rather than a backup is also supported.

Once we have our image created with:

we can create multiple independent, isolated data containers using our new image:

A Spawn data container is a just a regular database instance that can be connected to with whatever database development software you would normally use. As we make changes to either the schema or the data in the database, we can create regular save points:

Each time we save, we get a new revision that can be reverted back to with:

In this way we can work iteratively on the database to get a successful reproduction of the performance issue.

Capture

You’ve reproduced the problem and you’re connected to a data container that demonstrates the issue. Now what? You want to bring in more team members to help track down the issue? You could simply pass them the connection details to your data container to allow them to take a look. But what if they want to make further changes and experiments? You’re locked into a ‘shared database’ workflow where changes made by one developer could trample over changes made by another. This is going to make tracking down that problem much more difficult.

Fortunately, Spawn allows users to graduate a data container to a data image, neatly capturing and preserving the performance problem:

Here we have turned revision 2 of our data container into a data image. Now

shows us our new data image, ready for other team members to create their own data containers from it:

Share

Everyone in your organisation now has access to this new image, meaning that they can create a data container from the image to investigate the performance issue for themselves:

Each data container is completely independent and isolated from other data containers, despite being based on the same data image. Team members can now create their own data containers and iterate on the schema, run profilers, view query plans and alter the schema without interfering with anyone else.

Everyone in the team, including that all-important database expert, has their own sandbox to experiment in. Spawn has unlocked your team’s collaboration and parallelised the work towards a resolution.

Reproduce — Capture — Share

Spawn levels up team collaboration by allowing easy sharing of database images. Got an interesting bug or gnarly performance issue in your database? Create a Spawn data image and share it with your team to find the fix that much sooner.

Spawn is in open beta. Download the CLI and get started in seconds.

--

--