# database location as variable

**URL:** https://forums.plex.tv/t/database-location-as-variable/237963
**Category:** Feature Suggestions
**Created:** [June 6, 2018, 2:26am UTC](https://forums.plex.tv/t/database-location-as-variable/237963 "2018-06-06T02:26:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jlim0930](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jlim0930/32/3621_2.png) [@jlim0930](https://forums.plex.tv/u/jlim0930)
#### Post date: [June 6, 2018, 2:26am UTC](https://forums.plex.tv/t/database-location-as-variable/237963/1 "2018-06-06T02:26:11Z")

</div>

is there a way to specify the database location for Plex? if not can I ask for a feature request?

currently my Plex is on linux and the OS is running on SSD however my /var/lib/plexmediaserver is mounted from normal drives and I am getting a few slow query in the logs

Jun 05, 2018 19:16:44.779 [0x7f41953fc700] WARN - SLOW QUERY: It took 270.000000 ms to retrieve 50 items.  
Jun 05, 2018 19:17:09.799 [0x7f418c7fc700] WARN - SLOW QUERY: It took 300.000000 ms to retrieve 50 items.

(yes my database is optimized and not corrupt - already performed it earlier today)

if its possible to specify the database location i would much prefer to put the database on the ssd drive instead of having it on the data drive.

I know that we can nest mount the database directory or create symlinks but i think having the database location as variable that we can adjust would be much cleaner.

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [March 6, 2021, 6:05pm UTC](https://forums.plex.tv/t/database-location-as-variable/237963/2 "2021-03-06T18:05:30Z")

</div>

Early 2021 clean-up: implemented/possible

> **[Advanced, Hidden Server Settings | Plex Support](https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/)**
>
> There are a number of advanced, hidden Plex Media Server settings, some of which are not available from the normal...

---

<div class="post-metadata">

### Author: ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)
#### Post date: [June 10, 2021, 12:57am UTC](https://forums.plex.tv/t/database-location-as-variable/237963/3 "2021-06-10T00:57:06Z")

</div>


