Actually what I am trying to do is to use pipelining in dm-redis-adapter.

For this purposes I have to process all entries at adapter level.
Example:
class Post
  include DataMapper::Resource

  property :id, Serial
  property :name, Text
end

# some code to create posts

Post.update :name => 'new_name' 

But the problem here is that any adapter's method (update in this case) 
receive one entry by each call (1_000 entries = 1_000 update).
Then I thought that sql bulk create operation is very close to my problem 
(should also gather all entries in one method before final update), but I 
didn't find any bulk methods neither in source code or examples.

Is it possible, or better way use pipelining outside the adapter (and use 
bulk create outside dm-mysql-adapter like 
in http://datamapper.org/docs/create_and_destroy at very bottom)?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to