# Private Message Page Performance

**URL:** <https://meta.discourse.org/t/private-message-page-performance/39865>\
**Category:** Development\
**Tags:** slow-sql\
**Created:** [19. Februar 2016 um 20:04 UTC](https://meta.discourse.org/t/private-message-page-performance/39865 "2016-02-19T20:04:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [23. Februar 2016 um 13:55 UTC](https://meta.discourse.org/t/private-message-page-performance/39865/4 "2016-02-23T13:55:26Z")

</div>

Created the following index:

```plaintext
CREATE INDEX index_private_message_topics_on_created_at_and_visible
  ON topics
  USING btree
  (created_at, visible)
  WHERE deleted_at IS NULL AND archetype::text = 'private_message'::text;

```

And it indeed doesn’t work :sadpanda:.

If I get something that works I will report here.

---

_[View the full topic](https://meta.discourse.org/t/private-message-page-performance/39865)._
