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

complete upload - skip db access for small object (for performance) #7486

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

alphaprinz
Copy link
Contributor

Explain the changes

For small objects with one part, we know the start/end of object.
There's no need to fix values in db at the end of the put object.
(It's needed for multipart upload where each part doesn't know its start/end at single part upload).
Also, set part as committed when inserting the part (again, to skip db access for removing uncommitted at the end).

Issues: Fixed #xxx / Gap #xxx

Redundant db access at the end of upload.

Testing Instructions:

  • Doc added/updated
  • Tests added

src/server/object_services/map_server.js Outdated Show resolved Hide resolved
src/server/object_services/object_server.js Outdated Show resolved Hide resolved
src/server/object_services/object_server.js Outdated Show resolved Hide resolved
src/server/object_services/object_server.js Outdated Show resolved Hide resolved
src/sdk/object_io.js Outdated Show resolved Hide resolved
src/server/object_services/object_server.js Outdated Show resolved Hide resolved
src/server/object_services/object_server.js Outdated Show resolved Hide resolved
@alphaprinz alphaprinz force-pushed the skip_complete_db_small_obj branch 2 times, most recently from b95e540 to d862801 Compare September 19, 2023 06:05
@pull-request-size pull-request-size bot added size/M and removed size/S labels Sep 19, 2023
@pull-request-size pull-request-size bot added size/S and removed size/M labels Sep 19, 2023
@pull-request-size pull-request-size bot added size/M and removed size/S labels Sep 19, 2023
@alphaprinz alphaprinz marked this pull request as ready for review September 21, 2023 10:20
@alphaprinz alphaprinz changed the title DRAFT complete upload - skip db access for small object (for performance) complete upload - skip db access for small object (for performance) Sep 21, 2023
@alphaprinz alphaprinz force-pushed the skip_complete_db_small_obj branch 2 times, most recently from 5022402 to eb39ce8 Compare January 3, 2024 12:09
Copy link

This PR had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.

@github-actions github-actions bot added the Stale label Apr 25, 2024
Copy link

This PR is stale and had no activity for too long - it will now be closed.

@github-actions github-actions bot closed this May 26, 2024
@nimrod-becker nimrod-becker reopened this Jun 6, 2024
@github-actions github-actions bot removed the Stale label Jun 6, 2024
@alphaprinz alphaprinz marked this pull request as draft June 6, 2024 17:22
@pull-request-size pull-request-size bot removed the size/M label Jun 7, 2024
@alphaprinz alphaprinz marked this pull request as ready for review June 7, 2024 18:35
Copy link
Member

@guymguym guymguym left a comment

Choose a reason for hiding this comment

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

Hi @alphaprinz Good to see you're back!

src/server/object_services/object_server.js Outdated Show resolved Hide resolved
src/sdk/object_io.js Outdated Show resolved Hide resolved
src/server/object_services/object_server.js Outdated Show resolved Hide resolved
src/server/object_services/object_server.js Outdated Show resolved Hide resolved
@alphaprinz alphaprinz force-pushed the skip_complete_db_small_obj branch 2 times, most recently from 5b8edce to 6345484 Compare June 10, 2024 18:18
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants