# Prestazioni lente a causa della latenza per query nel collegamento al database?

**URL:** <https://meta.discourse.org/t/slow-performance-due-to-per-query-latency-connecting-to-database/96907>\
**Category:** Self-hosting\
**Created:** [11 Settembre 2018, 1:02am UTC](https://meta.discourse.org/t/slow-performance-due-to-per-query-latency-connecting-to-database/96907 "2018-09-11T01:02:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)\
**Post date:** [11 Settembre 2018, 1:04am UTC](https://meta.discourse.org/t/slow-performance-due-to-per-query-latency-connecting-to-database/96907/2 "2018-09-11T01:04:55Z")

</div>

That smells… swappy. AR does a _lot_ of memory work to convert data between formats, and if you’re a bit tight on memory, it could end up touching lots of pages that need to be swapped in.

---

_[View the full topic](https://meta.discourse.org/t/slow-performance-due-to-per-query-latency-connecting-to-database/96907)._
