journeymidnight / yig

An open source object storage server with Amazon S3 compatible API
Apache License 2.0
361 stars 86 forks source link

Get every object while listing objects #187

Closed Gongsc closed 5 years ago

Gongsc commented 5 years ago

Describe the bug In meta/client/tidbclient/bucket.go, function ListObjects get every objects after get a list, and it causes high latency. Could it return directly after get a full list?

thesues commented 5 years ago

no, plz check the code in https://github.com/journeymidnight/yig/blob/master/meta/client/tidbclient/bucket.go#L164 It will limit the entries int the select sql.