Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use batching on the saved data page. #440

Merged
merged 6 commits into from
Dec 13, 2024
Merged

Conversation

mauritsvanrees
Copy link
Member

On a client site I have a form with 12 questions and almost 700 entries and this takes over 40 seconds to load. Downloading the csv data takes just 4 seconds.

By default the page now uses a batch size of 10.
For good measure, you can override this by passing ?batch_size=x in the url, but this gets lost when you use the batch navigation to go to the next page. This is because it is not supported by the standard CrudBatchView from plone.z3cform.

On a client site I have a form with 12 questions and almost 700 entries and this takes over 40 seconds to load.
Downloading the csv data takes just 4 seconds.

By default the page now uses a batch size of 10.
For good measure, you can override this by passing `?batch_size=x` in the url, but this gets lost when you use the batch navigation to go to the next page.
This is because it is not supported by the standard `CrudBatchView` from `plone.z3cform`.
@mauritsvanrees
Copy link
Member Author

Apparently this was already done on 3.x in a nicer way: #368
But not moved to master.

@mauritsvanrees mauritsvanrees merged commit c62790b into master Dec 13, 2024
4 checks passed
@mauritsvanrees mauritsvanrees deleted the saved-data-batch-size branch December 13, 2024 10:48
@mauritsvanrees
Copy link
Member Author

I have released collective.easyform 4.3.0 with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant