Rubyのmysql2で巨大なデータを取り扱いたい場合、Streamingをtrueにすると一度に必要な行だけ取ってこられるようです。
result = client.query("SELECT * FROM really_big_Table", :stream => true)
More than 5 years have passed since last update.
Rubyのmysql2で巨大なデータを取り扱いたい場合、Streamingをtrueにすると一度に必要な行だけ取ってこられるようです。
result = client.query("SELECT * FROM really_big_Table", :stream => true)
Register as a new user and use Qiita more conveniently