# Request time - vote\_count

**URL:** <https://meta.discourse.org/t/request-time-vote-count/67239>\
**Category:** Feature\
**Tags:** topic-voting\
**Created:** [August 1, 2017, 11:46am UTC](https://meta.discourse.org/t/request-time-vote-count/67239 "2017-08-01T11:46:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)\
**Post date:** [August 1, 2017, 11:46am UTC](https://meta.discourse.org/t/request-time-vote-count/67239/1 "2017-08-01T11:46:02Z")

</div>

Executing action: latest — **155.30 ms**

`SELECT "topic_custom_fields"."topic_id", "topic_custom_fields"."name", "topic_custom_fields"."value" FROM "topic_custom_fields" WHERE (topic_id in (159,134,1041,958,1037,260,900,1016,1018,773,1015,1034,428,301,998,1005,1006,1008,1012,1010,756,1007,680,1003,781,886,1002,899,662,1000)) AND (name in ('accepted_answer_post_id','vote_count'));`

```
SELECT
  ci.relname
FROM
  pg_index i
  join pg_class ci on ci.oid = i.indexrelid
  join pg_class ct on ct.oid = i.indrelid
WHERE
  ct.relname = 'topics'

```

See indexes

index\_topics\_on\_lower\_title  
index\_topics\_on\_created\_at\_and\_visible  
index\_topics\_on\_pinned\_at  
index\_topics\_on\_pinned\_globally  
idx\_topics\_front\_page  
index\_topics\_on\_id\_and\_deleted\_at  
idx\_topics\_user\_id\_deleted\_at  
index\_topics\_on\_bumped\_at  
topics\_pkey

`CREATE INDEX index_topics_vote_count ON topics (vote_count);`

```
PG::SyntaxError: ERROR: syntax error at or near "CREATE"
LINE 8: CREATE INDEX index_topics_vote_count ON topics (vote_count)

```

Correctly I look? Because of the lack of an index of this speed? And why do I have a mistake?

---

_[View the full topic](https://meta.discourse.org/t/request-time-vote-count/67239)._
