Forums / Install & configuration / MySQL vs MySQLi (improved)

MySQL vs MySQLi (improved)

Author Message

Piotrek Karaś

Monday 03 December 2007 10:30:32 pm

Hello there,

Can anyone comment on the differences between mysql and mysql improved library for mysql in the context of eZ Publish? Especially:

1) What would be the strengths of one over other for eZ in particular?

2) Is there ANY greater risk of coming across a bug (simply because mysqli hadn't been introduced until recently)? Or is it totally transparent, or some kind of abstraction layer takes care of differences?

3) If my hosting environment provides both for PHP5, would it be for any reason not recommended to switch between both options later on, having some content in?

Thanks for any suggestions,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Jonny Bergkvist

Wednesday 30 January 2008 6:10:28 am

Hello,

The documentation page:
http://ez.no/doc/ez_publish/technical_manual/4_0/installation/the_setup_wizard

Says the following:
"
Note that if the MySQLi extension is enabled in PHP, the "MySQL Improved" option will be available on the list. If you are going to use a MySQL database, it is recommended to select "MySQL Improved" instead of "MySQL".
"

As Piotrek asks for, it would be great with some details of the difference between using mysql vs. mysqli in the context of eZp 4.

If you know, please share your information here :-)

Thanks,
Jonny

Björn Dieding@xrow.de

Wednesday 30 January 2008 4:30:27 pm

http://www.php.net/mysqli

I can just point you to this url... As you can see it is kind of a software/driver upgrade with new functionality.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Piotrek Karaś

Wednesday 30 January 2008 5:13:29 pm

Yup, I had already dealt with it before I first touched eZ Publish. Just thought there could be some eZ related issues.

How would you see lack of persistent connections for an eZ site with high traffic? Did actually eZ Publish make use of those at all?

Thanks

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Martin Burger

Sunday 09 August 2009 1:48:50 am

Especially this page provides further information: http://www.php.net/manual/en/mysqli.overview.php

They advise to use MySQLi: "Note: If you are using MySQL versions 4.1.3 or later it is strongly recommended that you use this extension. "

http://www.netbeyond.de/

Gaetano Giunta

Monday 10 August 2009 1:02:58 am

As for eZP-specifics, some corner cases are:
- cluster-mode support still lacking
- script to convert db from mysqli to oracle still lacking

Principal Consultant International Business
Member of the Community Project Board

Piotrek Karaś

Monday 10 August 2009 1:15:13 am

Now, that's piece of concrete and practical info, Gaetano. Thanks!
I think this could be mentioned somewhere, for example in the installation wizard.

Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

eZ debug

Timing: Jan 18 2025 10:42:59
Script start
Timing: Jan 18 2025 10:42:59
Module start 'content'
Timing: Jan 18 2025 10:42:59
Module end 'content'
Timing: Jan 18 2025 10:42:59
Script end

Main resources:

Total runtime0.7297 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 587.7344180.8281
Module start 'content' 0.00890.5674 768.5625725.1016
Module end 'content' 0.57630.1533 1,493.6641340.4609
Script end 0.7296  1,834.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.5965210.0002
Check MTime0.00150.2084210.0001
Mysql Total
Database connection0.00110.149910.0011
Mysqli_queries0.632086.61352120.0030
Looping result0.00230.31542100.0000
Template Total0.694795.220.3473
Template load0.00300.414820.0015
Template processing0.691694.777220.3458
Template load and register function0.00010.013610.0001
states
state_id_array0.00100.134410.0010
state_identifier_array0.00110.144020.0005
Override
Cache load0.00250.3397480.0001
Sytem overhead
Fetch class attribute can translate value0.00190.259460.0003
Fetch class attribute name0.00170.2334120.0001
XML
Image XML parsing0.00310.419160.0005
class_abstraction
Instantiating content class attribute0.00000.0041140.0000
General
dbfile0.00420.5797520.0001
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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs