Forums / Developer / This is NOT LOGIC specification in ezp3 !!!!

This is NOT LOGIC specification in ezp3 !!!!

Author Message

Selmah Maxim

Monday 23 June 2003 2:53:15 am

Hi ..

Now am developing interactive site, where users can submit they informations, and editing, almost finished, the idea if of the site is smth new concept, and the 1st prospects of users for 1st year could be over 1000 registered user, and what is not logic here that each user can have min. 5 copy or version or draft of his submied information, so 5 x 1000 = 5000, and the active real data is just 1000, can you imagin how slow will be the site, can imagin how slow will be the search ??

The idea of versions is not logic at all, and am sure alot of ezp users have comments about this.

So, any clew or idea how to stop users from creating versions ,drafts, trash ?

Paul K Egell-Johnsen

Monday 23 June 2003 6:53:12 am

Well, you might be able to do something in the code to disable versionning. What I really wanted to comment is the assumption that versioning isn't logical.

Versionning is one of the many good new features in ezp3. It allows eZ publish to be deployed in a more professional atmosphere where content can be created, edited, forwarded to people, okayed and a lot of other stuff. These features are a must for some sites and for some clients.

I'm sure that ezp3.2-3.3 or something will have good functions for cleaning up in for example versions and drafts created by groups of people (without touching those vereions and drafts which are needed).

And remember, there are some pretty big sites out there using ezp3, and they cope well with the size of data.

5000 rows in a database isn't that much, by the way, but I agree that the data might grow very fast if the versionning is used overly much.

Paul

--
http://www.vogol.com/user/spdyvkng/blog/

Selmah Maxim

Monday 23 June 2003 8:03:31 am

I agree with you, i had made some modfications with the code, the code will allow for each user just one draft and 1 version, now if u try it here click 'replay' so new row will be inserted into the db, even if u didn`t write or submited, and i had write about this befor 'DB flood' , and the problem no one can (even admin) can check this empty rows or delete it, and in versions, and drafts case is the same, admin cann`t delete the users trashes, and unneeded drafts, versions for users.

The code what i had wrote will insert the submitted data into the 1st empty row of the same class for user, in this case the flood will stop, and each user will get 1 draft, 1 version, and no trash items, but i had met problems with it, that the data should be store it in many rows, so i had delete it.

I had made alot of code modifications in the code, and each upgrade i need to modify the code again and again, now almost done, just writing the CSS for templates, and i think i found bug, after I had gived up to stop the versions, i found that any user can read any versions, not reading , viewing the versions of any user he want, i think this bug, coz by rules he cann`t access another user page. Now if i wanna wait the next version then i need to modify the code again :( .. .. .

The best solution thing about versions, draft and trash to make it option by class, section, user group !

Karsten Jennissen

Monday 23 June 2003 8:06:14 am

I took up your suggestion an posted it here:
http://ez.no/developer/ez_publish_3/forum/suggestions/make_versioning_drafts_optional_per_class

Seems like we will have some of this in the future. Good news.

Karsten

Selmah Maxim

Monday 23 June 2003 8:13:36 am

thx ...

eZ debug

Timing: Jan 30 2025 22:24:25
Script start
Timing: Jan 30 2025 22:24:25
Module start 'content'
Timing: Jan 30 2025 22:24:25
Module end 'content'
Timing: Jan 30 2025 22:24:25
Script end

Main resources:

Total runtime0.4855 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 588.0469370.2891
Module start 'content' 0.00990.0141 958.33591,005.5781
Module end 'content' 0.02410.4613 1,963.91413,894.0391
Script end 0.4854  5,857.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.9366200.0002
Check MTime0.00140.2884200.0001
Mysql Total
Database connection0.00060.130810.0006
Mysqli_queries0.364575.07851410.0026
Looping result0.00280.58691390.0000
Template Total0.460894.910.4608
Template load0.00090.193810.0009
Template processing0.459994.733110.4599
Override
Cache load0.00060.133210.0006
Sytem overhead
Fetch class attribute can translate value0.00410.844010.0041
XML
Image XML parsing0.00030.056410.0003
General
dbfile0.01633.3658200.0008
String conversion0.00000.001230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs