conflict resolving if article gets edited simultaneously?

Author Message

Kai Duebbert

Wednesday 28 May 2003 2:12:01 am

Hi,

What happens if several people edit the same article at the same time and then send the result.

Scenario:
Editor 1 loads editing form for article A
Editor 2 loads editing form for article A
Editor 1 goes away and drinks a coffe.
Editor 2 edits the article and saves it.
Editor 1 comes back, edits the article and saves it.

Which version will now be active in the database? Or does the article get a lock when somebody edits it? Or does someone get a error message?

Thanks for answers,

Kai

Bård Farstad

Wednesday 28 May 2003 2:15:42 am

They will get one draft each. So they will be working on two different unpublished versions. The last published draft will be the current visible version.

The objects are not locked, it's legal to have n drafts of the same object. In 3.1 we've added a warning page where you will see which people is currently editing the current object.

If you get an error message you will not be able to publish and hence the last published will be a valid object.

--bård

Documentation: http://ez.no/doc

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:04:49
Script start
Timing: Jan 18 2025 05:04:49
Module start 'layout'
Timing: Jan 18 2025 05:04:49
Module start 'content'
Timing: Jan 18 2025 05:04:50
Module end 'content'
Timing: Jan 18 2025 05:04:50
Script end

Main resources:

Total runtime0.5227 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.1641152.6563
Module start 'layout' 0.00600.0033 740.820339.4922
Module start 'content' 0.00930.5120 780.3125522.6953
Module end 'content' 0.52130.0013 1,303.00788.2656
Script end 0.5226  1,311.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6632160.0002
Check MTime0.00140.2647160.0001
Mysql Total
Database connection0.00070.142910.0007
Mysqli_queries0.473490.5680540.0088
Looping result0.00060.1061520.0000
Template Total0.486593.120.2432
Template load0.00290.560520.0015
Template processing0.483592.513720.2418
Template load and register function0.00020.043810.0002
states
state_id_array0.00160.299210.0016
state_identifier_array0.00130.241820.0006
Override
Cache load0.00240.4506200.0001
Sytem overhead
Fetch class attribute can translate value0.00120.238820.0006
Fetch class attribute name0.00100.193630.0003
XML
Image XML parsing0.00080.147720.0004
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00080.1449170.0000
String conversion0.00000.001740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs