You can use Datset#import http://sequel.jeremyevans.net/rdoc/classes/Sequel/Dataset.html#method-i-import "Inserts multiple records into a linked table. This method can be used to efficiently insert a large number of records into a table in one query, if the database supports it. Inserts are automatically wrapped in a transaction. "
here is an example of how to use it:
DB = Sequel.connect(...) DB[:movies].import([:id, :director, :title, :year], [[1, "Orson Welles", "Citizen Kane", 1941],[2, "Robert Wiene", "Cabinet of Dr. Caligari, The", 1920]])
Chris kolodin
source share