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

chore: using copy to improve write speed of batch collab api endpoint #862

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

appflowy
Copy link
Contributor

@appflowy appflowy commented Oct 6, 2024

  1. use rayon to do decompression and data validation
  2. using copy instead of insert one by one to postgres in the background queue

for params in &params_list {
self
.access_control
.update_policy(uid, &params.object_id, AFAccessLevel::FullAccess)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If batch_insert_collabs should work on batches, should that for loop be a batch as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. it should be. Because shuheng is working on access control. So I don't want to modify the access control. I will leave a todo for myself

@appflowy appflowy merged commit 38ff187 into main Oct 7, 2024
10 checks passed
@appflowy appflowy deleted the optimize_batch_collab_write branch October 7, 2024 00:58
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.

2 participants