Chats slowing down the more I use it

In my app I have a chat functionality.

It’s setup as a Chat data type which holds information like who is part of this chat, dates, and who has seen the chat.

Then I have Chat_responses which are the actual text and images for each response which is connected to the main chat.

Normally it’s pretty quick, but what I’ve noticed is that the chats I have a lot of conversations with seem to run slower. I have most past chat_responses hidden and you have to click a show past responses, but even when I click the comment button to submit my text response it takes forever. Again, the only connection I can find between the ones which are quick and the ones which are really slow is the number of past conversations I’ve had with them.

Does this sound correct, and is there anything I can do to speed it up?

Typically related to how bubble loads data with your data structure and on page setup.

Are you using “lists of messages” nested in each conversation or how are you relating data?

Sounds like it is not your first barbecue :sweat_smile:

1 Like

Hello Chris,

I have nested RGs, since I have them broken out into days. So it looks like this…

Sat. Sept. 2
Me: Hello
Them: How are you.

Sun. Sept. 3
Me: What time are we meeting.
Them: How about noon.

Today
Me: Sounds good

It looks nice, and easier to follow conversations, but is this causing it to run slow?

No nested RG is totally okay.

Are you filtering/adv filtering at all to get those results?

How does the data structure look?

I don’t have any filtering or advance filtering.

First group for Date:

2nd Group for chat_responses:

1 Like