# App has slowed to a crawl

**URL:** https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065
**Category:** Questions about Thunkable X
**Created:** [January 1, 2020, 2:06pm UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065 "2020-01-01T14:06:44Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![bobbyj12](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bobbyj12](https://community.thunkable.com/u/bobbyj12)
#### Post date: [January 1, 2020, 2:06pm UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065/1 "2020-01-01T14:06:44Z")

</div>

Good day. Well, this is disappointing. My app has slowed to a crawl and it literally takes 4 minutes to make a change to a block. What can I do to alleviate this?

I have currently 21 switches in the app and I plan on adding a lot more switches and features. At this pace I will finish by the end of this year.

Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [January 1, 2020, 2:17pm UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065/2 "2020-01-01T14:17:56Z")

</div>

Hi @bobbyj12, happy new year! 🎉

I responded to your question about switches yesterday with this sample app that I built for you, did you get a chance to look at it?

> [@Any Component tutorials](http://community.thunkable.com/t/any-component-tutorials/386382/4):
>
> Hey @bobbyj12 wave Did you ask a question about this last week? I made [a demo app here], but there was a little bit of “prep work” needed to get everything set up properly.([https://x.thunkable.com/copy/7961b670d2eb85a2b4784373c0bc0585](https://x.thunkable.com/copy/7961b670d2eb85a2b4784373c0bc0585)) Once that was done it worked fine.

You should be able to refactor your app with the `Any Component` blocks to dramatically reduce your block count.

Just out of curiosity, what sort of app pare you building that requires so many switches?

---

<div class="post-metadata">

### Author: ![bobbyj12](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bobbyj12](https://community.thunkable.com/u/bobbyj12)
#### Post date: [January 1, 2020, 2:39pm UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065/3 "2020-01-01T14:39:35Z")

</div>

Thanks, @domhnallohanlon for helping. I did look at it and it am still having problems. My app is a checklist of this to do. There will about 5 categories and each category will have 15 to 25 items in the list. Each item with have a switch so the person knows if they did the work. I’m able to use the Any Component for switches to add the value to the real time database but I am unable to retrieve it and display the value on the switch (i.e. Switch is on, The tint is red, the thumb is green.) When I open the app, app switches are off and grey. I have been rattling my brain on this for a while. I’m its a simple fix that I just cant figure out.

Here is a screen print of the user facing page

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/06f4f0a5d57c3b6c214165119118302b8d87a609.png)

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [January 1, 2020, 4:48pm UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065/4 "2020-01-01T16:48:30Z")

</div>

Aha - that makes sense.

What a great idea for an app.

Can I recommend that you use a [cloud variable](https://docs.thunkable.com/variables) instead though?

---

<div class="post-metadata">

### Author: ![bobbyj12](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bobbyj12](https://community.thunkable.com/u/bobbyj12)
#### Post date: [January 1, 2020, 8:16pm UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065/6 "2020-01-01T20:16:54Z")

</div>

That looks easy. I put these block together but still get the same result. Any suggestions PLease?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/a/fac7d41c41824e5165f07a073cb617e9bf8b0c9c.png)

Here is the screen

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/4/64ad313d0889dfac93c9a03a40d9d1f6b7393116.png)

---

<div class="post-metadata">

### Author: ![bobbyj12](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bobbyj12](https://community.thunkable.com/u/bobbyj12)
#### Post date: [January 2, 2020, 12:39am UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065/8 "2020-01-02T00:39:35Z")

</div>

I think I might have cracked the code. When I save the value of a switch to Real time db, the input does not say “Switch1”. The field is a long combination of number and letters. If I change the “Any Switch” block from “Component” to “Switch1” if works perfectly. Somehow, I need to work around this so I don’t have blocks for each switch.  
See attached.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/ed6e7d1ec165852da0568bfd5a6cfae93d93e44f.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/6/4629b4895e7bf199a0f92de351a90a5465afbab0.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/5/1537445a75dc5ab07b4860728cd0b732bec813b2.png)

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [January 3, 2020, 7:44am UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065/9 "2020-01-03T07:44:53Z")

</div>

Hi,

Why make a set of switches if you can make a list with checkboxes?

See scrLists in [https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)

---

<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, 11:46am UTC](https://community.thunkable.com/t/app-has-slowed-to-a-crawl/388065/10 "2024-11-08T11:46:13Z")

</div>


