# Slowness of typing in the search bar of a List

**URL:** https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357
**Category:** Ask for Help
**Created:** [December 3, 2020, 11:22pm UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357 "2020-12-03T23:22:42Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [December 3, 2020, 11:22pm UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/1 "2020-12-03T23:22:42Z")

</div>

Can you help me understand what the slowness of typing in the search bar can depend on?  
It happens that, if I have to search for a word, when I type it in the search bar, only the first letter of the word appears and then, after 4 secs, the remaining letters of the word appears all together.

I don’t think it’s a problem about rows quantity in the table… May depends on the quantity of relationships that are set up in the table?

Which contents of the row exactly does the search function affect?

---

<div class="post-metadata">

### Author: ![Pablo\_books](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablo_books/32/2110_2.png) [@Pablo\_books](https://community.glideapps.com/u/Pablo_books)
#### Post date: [December 3, 2020, 11:30pm UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/2 "2020-12-03T23:30:06Z")

</div>

No idea why but it’s always been slow for me

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [December 3, 2020, 11:43pm UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/3 "2020-12-03T23:43:29Z")

</div>

How many rows are you working with? I’ve seen it slow before on someone else’s app, but they were searching through thousands of rows. That list had to reload each time a letter was typed and the more letters that were typed allowed the list to load faster because the list got smaller and smaller.

> [@Freeze or normal behavior?](https://community.glideapps.com/t/freeze-or-normal-behavior/18618):
>
> Hello good day. I have an app with a PRO plan. in which I only make price inquiries for a list of 24950 products it has no formulas or relationships. It is only informative. On the mobile it freezes, on the desktop it works better, is it normal behavior? It would be the 24950 lines without photos, in the future I was thinking of adding photos to it, but I don’t think it’s possible due to the performance. Thank you Darío ([https://castrolmayorista.glideapp.io/](https://castrolmayorista.glideapp.io/))

Having a lot of rows can mean a lot of data to cache on the device.

The search will typically search through any visible data in the list as well as any visible data in the details screen of the list items.

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [December 3, 2020, 11:56pm UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/4 "2020-12-03T23:56:32Z")

</div>

That’s about 8000 rows. But the problem doesn’t seem to be due to the amount of rows, @Jeff_Hager, at least in my case.  
I just now tried with a clone of the slow-table and it is very fast since it has no defined relations.  
Now I’m re-entering one relationship at a time and see how it behaves.  
I’ll let you know soon.  
Thanks for your interest!

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [December 4, 2020, 12:33am UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/5 "2020-12-04T00:33:23Z")

</div>

I found out why …  
With the relation I built a data string for the caption of the list. These are additional product barcodes, the caption was useful precisely to have the ability to search for an item through multiple barcodes assigned to it. So at this point I think this is normal behavior, since I’m asking to search through a lot more data.  
However, the fact that the search bar freezes is not very nice for the APP user; maybe it could improve, at least with a wait icon in the middle of the screen that appears during freezing.  
Thanks @Jeff_Hager

---

<div class="post-metadata">

### Author: ![Tuttografica](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tuttografica/32/16484_2.png) [@Tuttografica](https://community.glideapps.com/u/Tuttografica)
#### Post date: [December 4, 2020, 12:38pm UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/6 "2020-12-04T12:38:18Z")

</div>

Hi @Jeff_Hager Jeff, with a filter that shows some components improved.  
The use is mainly on a desktop PC.  
on mobile phones it continues to freeze, Greetings

---

<div class="post-metadata">

### Author: ![Purvang\_Joshi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/purvang_joshi/32/12645_2.png) [@Purvang\_Joshi](https://community.glideapps.com/u/Purvang_Joshi)
#### Post date: [December 17, 2021, 7:07am UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/7 "2021-12-17T07:07:54Z")

</div>

It’s heavily freezing on one of my app. After typing one letter it’s freezing up to 7-8 seconds. Even on every device which having the Best RAM Capabilities.

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [December 17, 2021, 9:46am UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/8 "2021-12-17T09:46:22Z")

</div>

Hi, unfortunately it depends a lot on the complexity of the table.  
I have adopted a simple method for the lightning-fast search, but it is not applicable in all operational contexts; I’ll explain it to you, maybe it can be partially useful.

Let’s start from the limits it has:

1. needs a target column (but that target field could also be a column template)
2. the research input is case sensitive
3. produces a result only if the exact word is found

That said.

1. In your search target table create a column and convert all strings to lowercase
2. split that column using space, at this point you have an array of lowercase words
3. create a USC column
4. put in multiple relation the USC column with the split column
5. produce the search result with an inline list that has the multiple relation as its source

As I told you, this method has limitations, but for me it was useful to overcome the problem; I could apply it because the usage scenario is in an administrative context; I would see it not very applicable in a UI intended for public users.

---

<div class="post-metadata">

### Author: ![Yasin\_Hassanien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yasin_hassanien/32/9042_2.png) [@Yasin\_Hassanien](https://community.glideapps.com/u/Yasin_Hassanien)
#### Post date: [December 17, 2021, 10:19am UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/9 "2021-12-17T10:19:57Z")

</div>

Its about the amount of row and the support team are aware of the issue and they said they don’t have an ETA

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [December 17, 2021, 10:54am UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/10 "2021-12-17T10:54:44Z")

</div>

In my experience the amount of rows is not the only cause but one of which.

---

<div class="post-metadata">

### Author: ![Yasin\_Hassanien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yasin_hassanien/32/9042_2.png) [@Yasin\_Hassanien](https://community.glideapps.com/u/Yasin_Hassanien)
#### Post date: [December 17, 2021, 11:27am UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/11 "2021-12-17T11:27:05Z")

</div>

I had a lot of trials and I have more than 20 to 30 apps running and it depends on how you view view the rows and that particular screen that you are searching in and it does not rely on complexity of the columns nor the column count because I digged in and tried to troubleshoot it and the only way is to slice this type of rows to a different views.  
Example Let’s say that you have more than 8000 rows and you have a column which is consisting of an email and you’re trying to view that for only the assigned users and the normal way glide developed you should assign the row owner so you don’t load all the rows at once to the client side however It takes a lot of time to compute at glide servers before it goes to the user side.  
The work around I did is to create a relation in the user’s table and in the screen instead of viewing 8000 rows 8000 rows to the users so I only gave them They related assigned rows to them  
And the above mentioned example as you can see I sliced out the rows into several views and the email example is similar to a Category so in the 8000 rows group them out and and try to create in Google sheet a filter sheet to only view the groups and then relate the rows that are related to the particular group.  
This will give a split view by choosing the category the users need to search and before getting into the hole 8000 rows

---

<div class="post-metadata">

### Author: ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)
#### Post date: [December 17, 2021, 7:42pm UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/12 "2021-12-17T19:42:44Z")

</div>

@Yasin_Hassanien  
it’s good we’re looking into this!  
And thank you very much for reporting your experience.

I wished very much if others wanted to intervene too, especially someone on the Glide team to have a more official opinion than mine.

Watch the video, I took a velocity test:

- SXAPP. The application on the left is completely new, it contains a Catalog table that has been copied identical from the application on the right
- DXAPP. On the right, the application is the one that is in production and that suffers from slow search.

SXAPP was overloaded with mockup rows in other tables, it contains over 25,000 rows and few columns.

DXAPP is in its normal condition of use, it contains about 12,000 rows but a lot of columns.

Both applications have the same screen with only one inline list component which source is the sheet catalog, obviously the sheets are in two different files.  
The same sort type and same grouping type has been set.  
Both applications have the same type of pro license.

From min 1:13 of the video, you can notice the super slow response time of DXAPP compared to SXAPP.

From min. 2:12 of the video, you can see that the response time is very long even to go back from the detail screen.

From min. 2:31 of the video, there is this behavior: if you don’t close the X of the search, but simply write a new key instead of the previous one, then the response time is fast even in DXAPP.

* * *

I wanted to do this demonstration to experience the influence that a large amount of rows can bring, compare it to the large amount of columns (or rather: a simple table structuring versus a complex table structuring).

In my opinion, the amount of rows has less impact than the data structure of the row.

I hope this experiment will do something to better understand the performance optimization strategy.

Please wath this video:

---

<div class="post-metadata">

### Author: ![Yasin\_Hassanien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yasin_hassanien/32/9042_2.png) [@Yasin\_Hassanien](https://community.glideapps.com/u/Yasin_Hassanien)
#### Post date: [December 17, 2021, 8:07pm UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/13 "2021-12-17T20:07:56Z")

</div>

Yup can see that

@SantiagoPerez its affecting others as well

---

<div class="post-metadata">

### Author: ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)
#### Post date: [December 18, 2021, 2:18am UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/14 "2021-12-18T02:18:20Z")

</div>

Hey @Roldy thanks for taking the time to experiment and analyze.

I have a situation regarding optimization and I hope you could help.

In my situation I use a one row sheet to house all my images. Then I use single value columns to target those images across different tabs. This approach costs me lots of columns. (100+)

The advantage of this method is that with one small change I can affect many images.

The alternative would be to hard code the stored image URLs into an if then else column. (But then I won’t have one central place to control all the images)

I think my app could perform better if I choose to hardcode the URL’s directly into the ITE columns and your video seems to confirm my suspicions.

What do you think?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [December 18, 2021, 3:19am UTC](https://community.glideapps.com/t/slowness-of-typing-in-the-search-bar-of-a-list/19357/15 "2021-12-18T03:19:15Z")

</div>

I’ve handled images slightly differently. I store them in an images table with a key column and an image column. Then in all the other tables, I create a template column for the key value, and a relation and lookup column to pull in the image. I can still control all images from one global table. I don’t know if it’s more efficient or not as far as speed, but I don’t have to keep adding columns if I need more images. I just add rows.
