# Firebase retrieval speed test

**URL:** <https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904>\
**Category:** Questions about Thunkable X\
**Tags:** firebase\
**Created:** [May 21, 2021, 1:34am UTC](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904 "2021-05-21T01:34:27Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [May 22, 2021, 10:37am UTC](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904/21 "2021-05-22T10:37:04Z")

</div>

Yes, this delay is understandable. You are using `stored variable` which has a similar mechanism to those of `cloud variable`. Essentially those variable will verify and pull data from your device’s storage which are much slower that `app variables`

If you hold the stored variable value in an app variable and compare it then you will see a huge performance in time. Doing that, however, will require a kind of management approach to keep the main function of `stored variable` which are to retain values between sessions.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 22, 2021, 4:36pm UTC](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904/22 "2021-05-22T16:36:26Z")

</div>

Thanks. That stored variable is not crucial to the app’s operation. I can transfer the value to an app variable to use in that loop and then just save the value to the stored variable as needed.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 24, 2021, 5:52pm UTC](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904/23 "2021-05-24T17:52:36Z")

</div>

So… interesting update: I was seeing my app take 6.8 seconds to load 25 photo+text entries from Firebase. I timed various block combinations within my “for each item j in list” loop and found that the retrieval blocks were only taking 1 second. The remaining 5.8 seconds were taken up by this little block:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/99269826dbf17bb58f0ff17cc41f73ea55d2a671.png)

I had added it because it seemed to slow down the loop a tiny bit (or so I thought!) and allow the data to be synced properly without missing anything. But removing it speeds things up dramatically and so far… the data seems to be there as expected.

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [May 24, 2021, 6:28pm UTC](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904/24 "2021-05-24T18:28:29Z")

</div>

Thunkable updates the screen when it hits a wait block, doesn’t it? So you were perhaps doing an extra 25 redraws on a complicated screen, rather than once at the end when the loop finished.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 25, 2021, 6:20pm UTC](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904/25 "2021-05-25T18:20:42Z")

</div>

I think I’m going to have to give up on cloning components. I just tried using a built-in Data List Viewer layout and it was so blazingly fast that I’m just going to stick to that for now.

---

<div class="post-metadata">

**Author:** ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)\
**Post date:** [May 25, 2021, 11:07pm UTC](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904/26 "2021-05-25T23:07:45Z")

</div>

Sorry to hear that. I have a project with buttons as part of each list item - hoping it won’t be too slow. 🙂

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904/27 "2024-11-08T13:22:25Z")

</div>

Closed on November 8, 2024, 1:22pm UTC



[Previous page](https://community.thunkable.com/t/firebase-retrieval-speed-test/1296904.md?page=1)
