google-cloud-spannergoogle-cloud-spanner-emulator

Is there a way to allow parallel transaction in GCP Spanner emulator?


I am facing an issue with performance in GCP Spanner emulator (parallel transactions). It is written that emulator is support only one transaction per time, so other transactions are blocking until the first one will be finished. Is there any way to bypass it? Use free trial in GCP is not suitable for me...

I have tried googlign...


Solution

  • The limitation in the emulator is that you can execute at most one transaction per database at a time.

    You don't write what the use case is that you need to solve/test in this case, but the only possible workaround in the emulator would be to create two different databases and execute each transaction on a separate database. Would that work for your specific use case? Would you otherwise mind sharing a little more detail on what it is that you are trying to achieve?