LoginSignup
1
1

More than 5 years have passed since last update.

mysql2で巨大データを扱う場合

Posted at

Rubyのmysql2で巨大なデータを取り扱いたい場合、Streamingをtrueにすると一度に必要な行だけ取ってこられるようです。

result = client.query("SELECT * FROM really_big_Table", :stream => true)

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1