# Using CockroachDB Serverless has very poor performance

**URL:** <https://forum.heroiclabs.com/t/using-cockroachdb-serverless-has-very-poor-performance/2331>\
**Category:** Local Setup\
**Created:** [February 1, 2022, 7:59pm UTC](https://forum.heroiclabs.com/t/using-cockroachdb-serverless-has-very-poor-performance/2331 "2022-02-01T19:59:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DigNZ](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/dignz/32/869_2.png) [@DigNZ](https://forum.heroiclabs.com/u/DigNZ)\
**Post date:** [February 1, 2022, 7:59pm UTC](https://forum.heroiclabs.com/t/using-cockroachdb-serverless-has-very-poor-performance/2331/1 "2022-02-01T19:59:51Z")

</div>

I have a nakama install from docker using a local CockroachDB container and it works great. There are a few additional RPCs I’ve added for searching and social features and some associated webhooks but nothing much in the way of heavy database or server-side work, currently nakama is powering social features like friends, groups, accounts and storage and not yet any game related logic.

I tried switching to CockroachDB Serverless and performance dropped to the point where it was almost unusable. I don’t know if this is a CockroachDB Serverless issue or a Nakama issue or a configuration issue.

Has anyone got Nakama running on CockroachDB Serverless successfully and have any advice on how to get that set up and configured?

Thanks!

---

<div class="post-metadata">

**Author:** ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)\
**Post date:** [February 4, 2022, 4:51pm UTC](https://forum.heroiclabs.com/t/using-cockroachdb-serverless-has-very-poor-performance/2331/2 "2022-02-04T16:51:07Z")

</div>

I think this question is best asked on the Cockroach forums.
