[PR #678] [CLOSED] Store object metadata and data separately #820

Closed
opened 2026-03-03 12:31:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/678
Author: @gaul
Created: 2/8/2022
Status: Closed

Base: mainHead: fs/data


📝 Commits (1)

  • ae0af7e Store object metadata and data separately

📊 Changes

2 files changed (+30 additions, -5 deletions)

View changed files

📝 internal/backend/fs.go (+29 -4)
📝 internal/backend/object.go (+1 -1)

📄 Description

The former remains a JSON-encoded blob while the latter is stored in its
native format. This reduces memory usage and is much faster by avoiding
JSON-encoding large objects. This enables a future commit to avoid
reading the entire object, particularly for range requests. Note that
this commit changes the on-disk format and is not compatible with
previous data sets. References #669. Fixes #671.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/678 **Author:** [@gaul](https://github.com/gaul) **Created:** 2/8/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fs/data` --- ### 📝 Commits (1) - [`ae0af7e`](https://github.com/fsouza/fake-gcs-server/commit/ae0af7e58a9b7ef69b04460b47e2a0d28d2823cb) Store object metadata and data separately ### 📊 Changes **2 files changed** (+30 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `internal/backend/fs.go` (+29 -4) 📝 `internal/backend/object.go` (+1 -1) </details> ### 📄 Description The former remains a JSON-encoded blob while the latter is stored in its native format. This reduces memory usage and is much faster by avoiding JSON-encoding large objects. This enables a future commit to avoid reading the entire object, particularly for range requests. Note that this commit changes the on-disk format and is not compatible with previous data sets. References #669. Fixes #671. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:31:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#820
No description provided.