Data model : ezuser and ezuser_settings

Author Message

Hugues Charleux

Wednesday 29 September 2010 1:30:39 am

Hi all,

Fetching users the other day, I was just wondering...

Why are there two different tables, ezuser and ezuser_setting ?

I didn't get deep into code but it looks like the ezuser_setting fields[1] are mandatory for each ezuser records.

This makes the API more painfull as you have to fetch a eZUserSetting object to get those information.
This make an extra SQL query to get those informations.

This is not a big deal but looks strange, did I miss something ? Some historical background maybe ?

[1] is_enabled | max_login

André R.

Wednesday 29 September 2010 1:49:09 am

This should be part of ezuser someday indeed, not sure why there are two myself. Probably a reason that is not valid anymore :)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Nicolas Pastorino

Wednesday 29 September 2010 1:50:15 am

That could a useful bug report, couldn't it ?

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 02:19:14
Script start
Timing: Jan 18 2025 02:19:14
Module start 'layout'
Timing: Jan 18 2025 02:19:14
Module start 'content'
Timing: Jan 18 2025 02:19:15
Module end 'content'
Timing: Jan 18 2025 02:19:15
Script end

Main resources:

Total runtime0.7067 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.4609152.6250
Module start 'layout' 0.00590.0031 742.085939.4531
Module start 'content' 0.00900.6965 781.5391584.2656
Module end 'content' 0.70550.0012 1,365.804712.1563
Script end 0.7066  1,377.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4700160.0002
Check MTime0.00140.1935160.0001
Mysql Total
Database connection0.00070.102610.0007
Mysqli_queries0.658893.2244590.0112
Looping result0.00060.0790570.0000
Template Total0.679396.120.3396
Template load0.00210.301220.0011
Template processing0.677195.815920.3386
Template load and register function0.00010.014110.0001
states
state_id_array0.00070.099810.0007
state_identifier_array0.00110.154720.0005
Override
Cache load0.00180.2528180.0001
Sytem overhead
Fetch class attribute can translate value0.00080.108730.0003
Fetch class attribute name0.00100.137460.0002
XML
Image XML parsing0.00140.193730.0005
class_abstraction
Instantiating content class attribute0.00000.001160.0000
General
dbfile0.00090.1343290.0000
String conversion0.00000.000740.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs