# Sidekiq بطيء + Postmaster يستهلك أكثر من 95% من وحدة المعالجة المركزية (32 نواة) بعد ترقية إصدار PostgreSQL

**URL:** https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [27 مايو 2020، 4:08م UTC](https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983 "2020-05-27T16:08:57Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [27 مايو 2020، 5:21م UTC](https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983/5 "2020-05-27T17:21:13Z")

</div>

> [@markersocial](#):
>
> `VACUUM FULL VERBOSE;`

هل يمكنك تجربة أمر `vacuum verbose analyze`؟ ينطبق هذا أيضًا عليك يا @eboehnisch. الاستعلام التالي البسيط جدًا والذي يستغرق في المتوسط ثانيتين غريب جدًا:

> [@markersocial](#):
>
> `SELECT "posts"."id" FROM "posts" WHERE ("posts"."deleted_at" IS NULL) AND "posts"."topic_id" = $1 AND (posts.user_id = $2 OR post_type IN ($3,$4,$5)) AND "posts"."post_number" = $6 LIMIT $7 `

كما ذُكر في موضوع [تحديث PostgreSQL 12](https://meta.discourse.org/t/postgresql-12-update/151236)، فإن إنشاء الإحصائيات فكرة جيدة بعد التحديث.

---

_[View the full topic](https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983)._
