Skip to content

RAM usage on a query with infinity scroll and page size #7140

@junyi893

Description

@junyi893

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

I have a ListView with a query that loads 50 docs. On the device, when the page is loaded it uses around 400Mb of RAM.
Then, if I change the wuery to "Enable Infinite Scroll" and "Page Size=5", the on device the page uses around 800Mb.
I have tested it many time on and iPhone 13 mini. And it's always the same. I don't interact with the app or the scoll, I simple load the app with the selected page.
I have even tried to have to ListViews with the same config ("Enable Infinite Scroll" and "Page Size=5") and the RAM goes to 1.5GB!
The loaded documents are very simple...

It's a Firebase query.

Expected Behavior

The query with infinite scroll and page size should not double the RAM usage.

Steps to Reproduce

1.- Create a ListView, add a simple query and load some documents (50, 100...).
2.- Check the RAM usage on device (iOS).
3.- Do the same but with Infinite Scroll & Page Size.
4.- Usage RAM goes very high.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ITFTjMrlw4ZNrsNf+KXQaMExqCgUCUMdXZIRmOtvewgjF774PZk2Z8mlUxJtZNSzaHxffFKWqz8xpdrqiOLxMPpfZEmZGLZb/pFqSxPPY3yhRqaLEqizdEZ7J/9UC0Cc5rW3sB1+PshtSV1l2DiMOem/QT2Cf9qOYwx5e6fDbOY=

Visual documentation

Image

Environment

- FlutterFlow version: 6.6.104
- Platform:Mac OS for editing iOS for testing.
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions