# Multiple oneboxes performance problems

**URL:** https://meta.discourse.org/t/multiple-oneboxes-performance-problems/181295
**Category:** Development
**Created:** [February 27, 2021, 2:28am UTC](https://meta.discourse.org/t/multiple-oneboxes-performance-problems/181295 "2021-02-27T02:28:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Matias\_Carpintini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matias_carpintini/32/211341_2.png) [@Matias\_Carpintini](https://meta.discourse.org/u/Matias_Carpintini)
#### Post date: [February 27, 2021, 2:28am UTC](https://meta.discourse.org/t/multiple-oneboxes-performance-problems/181295/1 "2021-02-27T02:28:15Z")

</div>

Hello everyone. I just meet the onebox gem for rails, i’m making a Linktree clone so, i have a lot of links previews but, currently, the page takes 20-30 seconds to load 11 previews (videos, twitter status, etc). Any ideas to fix it?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 27, 2021, 3:39am UTC](https://meta.discourse.org/t/multiple-oneboxes-performance-problems/181295/2 "2021-02-27T03:39:16Z")

</div>

What we do in Discourse is to cache the result of the onebox in the database when the user saves a post, so you don’t have to construct all the oneboxes during page request.

---

<div class="post-metadata">

### Author: ![Matias\_Carpintini1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matias_carpintini1/32/211371_2.png) [@Matias\_Carpintini1](https://meta.discourse.org/u/Matias_Carpintini1)
#### Post date: [February 27, 2021, 11:35am UTC](https://meta.discourse.org/t/multiple-oneboxes-performance-problems/181295/3 "2021-02-27T11:35:53Z")

</div>

Right, but you still have a poor load permormance in the first time
