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

increase export feature page size #7341

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Sep 30, 2024

Context

Now that we have improved performances, we can increase the export feature page size from 30 to 200 (and probably above if results are good). This should be ok since we are only querying the first level of an object and omit relations.
I've moved this value to a constant.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR increases the export feature page size from 30 to 200 records per request, aiming to improve export performance for the Twenty application.

  • Introduced new constant EXPORT_TABLE_DATA_DEFAULT_PAGE_SIZE set to 200 in /packages/twenty-front/src/modules/object-record/record-index/options/constants/ExportTableDataDefaultPageSize.ts
  • Updated useExportTableData and useTableData hooks to use the new constant for default page size
  • Potential improvement in export efficiency by reducing the number of API calls for large exports
  • Consider monitoring server load and client-side memory usage with this increased page size

3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@Weiko Weiko merged commit 06d4ba9 into main Sep 30, 2024
7 of 13 checks passed
@Weiko Weiko deleted the c--increase-export-table-page-size branch September 30, 2024 13:45
Weiko added a commit that referenced this pull request Sep 30, 2024
## Context
Now that we have improved performances, we can increase the export
feature page size from 30 to 200 (and probably above if results are
good). This should be ok since we are only querying the first level of
an object and omit relations.
I've moved this value to a constant.
Weiko added a commit that referenced this pull request Sep 30, 2024
## Context
Now that we have improved performances, we can increase the export
feature page size from 30 to 200 (and probably above if results are
good). This should be ok since we are only querying the first level of
an object and omit relations.
I've moved this value to a constant.
harshit078 pushed a commit to harshit078/twenty that referenced this pull request Oct 14, 2024
## Context
Now that we have improved performances, we can increase the export
feature page size from 30 to 200 (and probably above if results are
good). This should be ok since we are only querying the first level of
an object and omit relations.
I've moved this value to a constant.
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