# \#gform\_disable\_custom\_field\_names\_query

**URL:** https://community.gravityforms.com/tag/gform-disable-custom-field-names-query/1242.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [SQL query takes the infinity time: function get\_custom\_field\_names()](https://community.gravityforms.com/t/sql-query-takes-the-infinity-time-function-get-custom-field-names/9315)

<div class="topic-metadata">

**Author:** [@user60a75a175d8ee408](https://community.gravityforms.com/u/user60a75a175d8ee408)\
**Replies:** 1\
**Last updated:** [May 21, 2021, 3:11pm UTC](https://community.gravityforms.com/t/sql-query-takes-the-infinity-time-function-get-custom-field-names/9315 "2021-05-21T15:11:46Z")

</div>

Hey there, I’m working on supporting one big project and faced with the issue of calling this function get\_custom\_field\_names(). It gathers all custom fields from the database by running this query: $sql = "SELECT DIST…
