lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "Per Steffensen/Update semantics" by Per Steffensen
Date Wed, 18 Apr 2012 21:49:57 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "Per Steffensen/Update semantics" page has been changed by Per Steffensen:
http://wiki.apache.org/solr/Per%20Steffensen/Update%20semantics?action=diff&rev1=14&rev2=15

  {{{
  INSERT INTO docs (id, column2, column3,...) VALUES (1234, value2, value3,...)
  }}}
-  * Update semantics with version control (for optimistic locking) as we know it from RDBMSs:
Do not add document if the document does not already exist and do not update if it has been
changed since it was loaded for update by the client doing the update. Very much like the
following SQL does NOT update a row with id=1234 if the version of the document in Solr at
the time of update is not (any longer) 5678
+  * Update semantics with version control (for optimistic locking) as we know it from RDBMSs:
Do not add document if the document does not already exist and do not update if it has been
changed since it was loaded for update by the client doing the update. Very much like the
following SQL does NOT update a row with id=1234 if the version of the document in Solr at
the time of update is not (any longer) 5678. This feature is used by popular O/R-mappers (like
Hibernate) to provide a VersionConflict error if the object (row/document) you loaded for
update has changed since you loaded it when you try to store your updated version.
  {{{
  UPDATE docs SET column2=value2, column3=value3, ... WHERE id=1234 AND version=5678
  }}}
- This feature is used by popular O/R-mappers (like Hibernate) to provide a VersionConflict
error if the object (row/document) you loaded for update has changed since you loaded it when
you try to store your updated version.
  
  == Solution ==
  

Mime
View raw message