googleapis / googleapis/google-cloud-java

[java-storage] Getting both Metadata and Content with a Single request

オープン
#12,636 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
api: storage type: feature request
主要言語
Java
スター
2.1k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
154

説明

I might be wrong but looking at our distributed traces, it seems following code will send two GET (JSON API) requests to `stogare.googleapis.com`

```
Blob blob = storage.get(blobId);
byte[] content = blob.getContent();
```

Is there a way to get both the content and (some) metadata with a single request? There's `Storage.readAllBytes` but it does not return metadata.
We are specifically interested in `Content-Encoding`, `Content-Type` and a few other standard headers (`Cache-Control`, `Content-Length`, etc).

We have millions of small objects, and it'd be great if we can cut both the latency and the cost by half.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。