0.0
The project is in a healthy, maintained state
Stream s3 select results
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
>= 0
~> 10.0
~> 3.0

Runtime

 Project Readme

S3 Selector

When selecting large amounts of data via the AWS SDK, it collects all results into memory and then provides you an enumerable. This is bad for very large result sets. This gem solves that by streaming results in, instead.

Installation

Add this line to your application's Gemfile:

gem 's3_selector'

And then execute:

$ bundle

Or install it yourself as:

$ gem install s3_selector

Usage

With S3 Files

bucket = Aws::S3::Bucket.new("my-bucket")
s3_files = bucket.objects(prefix: "folder-with-files")

results = S3Selector::ResultsStream.new(s3_files: []).records
results.each {|r| puts r}