I am currently working on RoR with PostgreSQL.
Basically, ActiveRecord satisfies most of the requirement of data retrieval. However, in some cases, it seems that using one statement would be much more efficient.
Therefore, is it possible to use one prepared statement to do multiple insert as the followings? Or I have to append the raw sql statement myself?
INSERT INTO films (code, title, did, date_prod, kind) VALUES
('B6717', 'Tampopo', 110, '1985-02-10', 'Comedy'),
('HG120', 'The Dinner Game', 140, DEFAULT, 'Comedy'), ...;