Statement Cache
cache = StatementCache.create(Book.connection) do |params|
Book.where(name: "my book").where("author_id > 3")
endcache.execute([], Book, Book.connection)最后更新于
cache = StatementCache.create(Book.connection) do |params|
Book.where(name: "my book").where("author_id > 3")
endcache.execute([], Book, Book.connection)最后更新于