Trini
ExAws list only number of objects
Hello everyone, I have the following question: I am using ExAws.S3 to make queries, but when I bring, for example, a list of objects, it has a maximum of 1000 keys per query.
Now what I want is to know how many objects there are in my bucket, but without bringing the list of objects, is this possible?
Or do I have to make several queries and set a counter to achieve this?
First Post!
benwilson512
Unfortunately S3 itself does not provide any easy way to do this beyond iterating as you had discussed. https://stackoverflow.com/questions/2862617/how-can-i-tell-how-many-objects-ive-stored-in-an-s3-bucket talks about another option where you can hit the cloud metrics API however to get an estimate, which is likely a lot faster.
Last Post!
Trini
This is really unfortunate… thank you very much for the information, I’ll see if I can access it through the API.
Popular in Questions
Other popular topics
Latest Phoenix Threads
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security










