# Preloading custom data and fields in the topic list

**URL:** <https://meta.discourse.org/t/preloading-custom-data-and-fields-in-the-topic-list/57389>\
**Category:** Development\
**Created:** [14 فبراير 2017، 9:45م UTC](https://meta.discourse.org/t/preloading-custom-data-and-fields-in-the-topic-list/57389 "2017-02-14T21:45:09Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Post date:** [15 فبراير 2017، 2:04ص UTC](https://meta.discourse.org/t/preloading-custom-data-and-fields-in-the-topic-list/57389/8 "2017-02-15T02:04:19Z")

</div>

> [@codinghorror](#):
>
> I believe Feature Voting plugin currently has n+1 queries

It used to. I think I’ve cleaned most of those up. I don’t know of any others.

[https://github.com/discourse/discourse-feature-voting/commit/135eaf8a5ec0e37b64adf10971384ee88abec580](https://github.com/discourse/discourse-feature-voting/commit/135eaf8a5ec0e37b64adf10971384ee88abec580)

> [@codinghorror](#):
>
> and perhaps for the same reasons?

I had to preload the custom fields due to errors if the data was blank. It was tricky to debug at first because I had existing data so I couldn’t replicate the errors reported. Then someone mentioned this process in Babble. Once I implemented it, the errors were gone. I never looked into it further than that.

---

_[View the full topic](https://meta.discourse.org/t/preloading-custom-data-and-fields-in-the-topic-list/57389)._
