[jboss-user] [JBossCache] - insert vs update in CacheLoader
aditsu
do-not-reply at jboss.com
Sun Jun 17 23:29:51 EDT 2007
Hi, I'm using jboss cache 1.4.1.SP3 and implementing a custom cache loader (that uses a database). How can I tell when a new node is inserted and when an existing node is updated? Right now the only way I found is to query the database for the node's record. I need this information in order to decide whether to do an INSERT or an UPDATE. But this extra SELECT query is clumsy and should be redundant. How can I get rid of it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055081#4055081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055081
More information about the jboss-user
mailing list