[storm] Update or add pattern with Storm

Justin Warren daedalus at eigenmagic.com
Fri Oct 10 04:58:04 BST 2008


Hi folks,

I need to implement a pretty common pattern: My code discovers some
information about the state of the real world, and then needs to compare
this discovered information with what is stored in the database.

If an object already exists in the database, information about its state
needs to be updated. If it doesn't exist, it needs to be added.

I have code that works, but it's not efficient. I figure there must be a
better way.

What is an efficient way of implementing this pattern with Storm?

-- 
Justin Warren <daedalus at eigenmagic.com>




More information about the storm mailing list