Replies: 1 comment
-
Hi @hantsy. Offset-based browsing is generally not supported in non-relational datastores (such as S3) because elements (such as S3 objects/keys) do not have intrinsic sequential numeric identifiers. Thus, attempting to list elements starting at say 1000 would require some service-side process to manually iterate through the elements, incrementing a counter each time until it got to 1000. This is a fundamentally unscalable pattern and, as such, is generally not offered. Because S3 does not offer this feature, the SDK cannot provide the means to paginate by numeric offsets directly. You're welcome to open a support case with S3 to request this feature but they may have a similar take as mine above. At a higher level, what are you trying to accomplish by using offset pagination? |
Beta Was this translation helpful? Give feedback.
-
I tried to use the following codes to get objects in a bucket.
I want to list the keys by an
offset
/limit
parameter pair from an HTTP request, butListObjectsV2Request
does not accept an offset position like field to specify the start position. There is astartAfter
field that requires akey
instead.Beta Was this translation helpful? Give feedback.
All reactions