# OOD Dashboard Slowness after updating to 2.X

**URL:** <https://discourse.openondemand.org/t/ood-dashboard-slowness-after-updating-to-2-x/2070>\
**Category:** Get Help\
**Tags:** ondemand2\
**Created:** [May 13, 2022, 9:55pm UTC](https://discourse.openondemand.org/t/ood-dashboard-slowness-after-updating-to-2-x/2070 "2022-05-13T21:55:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [May 18, 2022, 3:07pm UTC](https://discourse.openondemand.org/t/ood-dashboard-slowness-after-updating-to-2-x/2070/4 "2022-05-18T15:07:45Z")

</div>

Yea take a look here and do these computations in an initializer. That way, you make 1 query and can hold everything in memory. From the `form.yml.erb` you can then just reference the class you have in your initializer. This should reduce some of that rendering time.

> [@Suggestions on generating dynamic form data](https://discourse.openondemand.org/t/suggestions-on-generating-dynamic-form-data/1670/7):
>
> For Robert Settlage from OOD Open Office Hours: require 'json' require 'open3' # Required for capture3 command line call class CustomQueues ### GET PARTITIONS FOR THIS USER ### def self.queues @queues ||= begin #puts("Grabbing partitions for user.") sinfo\_cmd = "/opt/apps/slurm/prod/bin/sinfo" args = ["--noheader","-o=\"%R\""] @partitions\_available = [] o, e, s = Open3.capture3(sinfo\_cmd , \*args) o.each\_line do |v| #v.gsub(/=\"(\…

---

_[View the full topic](https://discourse.openondemand.org/t/ood-dashboard-slowness-after-updating-to-2-x/2070)._
