Add a time comparison between `mysql:8.0` and `vitess/vttestserver:mysql80` over `relationMode = "prisma"` tests.
See original GitHub issueIn https://github.com/prisma/prisma/pull/16051, we have noticed Vitess is notably slower than other databases when running the relationMode
test suites. We thus want to compare the time taken by the MySQL image we use (mysql:8.0
) and the Vitess image we use (vitess/vttestserver:mysql80
) to complete those tests.
We should:
- run a test suite that mirrors the tests and content of the
relationMode
functional suite, but supportingmysql
andvitess
only, ideally something like the following:RELATION_MODE="prisma" PROVIDER_FLAVOR="vitess-8" pnpm run test:functional:code --relation-mode-tests-only relationMode
- exposes commands to run the test suite with a single database
- call the Github Actions workflow as
client-relationMode-prisma-mysql-vs-vitess
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Using Prisma with PlanetScale
This document discusses the concepts behind using Prisma and PlanetScale, explains the commonalities and differences between PlanetScale and other databaseΒ ...
Read more >Unit testing with Prisma
Unit testing aims to isolate a small portion (unit) of code and test it for logically predictable behaviors. It generally involves mocking objects...
Read more >The Ultimate Guide to Testing with Prisma
In this series, you will learn how to perform different types of tests against various applications that interact with a database. This articleΒ ......
Read more >MySQL database connector (Reference) - Prisma
This page explains how Prisma can connect to a MySQL database using the MySQL ... of seconds to wait for a new connection...
Read more >Integration testing with Prisma
Integration tests focus on testing how separate parts of the program work together. In the context of applications using a database, integration tests...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It could be that itβs the creation and deletion of the database/tables that is very slow, which is not reflected in the step time.
I have run the
1:1
relationMode
test suite with the commandon a MacBook Pro M1. This command was run 10s after bootstrapping the database instance (either Vitess / MySQL). Here are the results:
TL/DR
mysql:8.0
takes 12.829svitess/vttestserver:mysql80
takes 599.321sOutput
Vitess
MySQL