I’m doing a remote database object so i can do:
result = database.find do |record|
record[:name] == “john”
in the server object i have something like:
def find(&block) result = nil @store.transaction do result = @store[:records].find_all do |record| yield(record) end end return result end
well, the problem is yielding that block. All the database is
“cloned/copied” (?) over the network when doing the find. I don’t want
to copy all that data, just return the found records.
I tried adding DRb::DRbUndumped to class PStore, but the same result.
The database size is about 3 MB.
Do you know how to solve this problem?