Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-28-2008, 01:01 PM
Dead_Thinker's Avatar
Junior Member
 
Join Date: May 2007
Location: Fortaleza/Ceará/Brazil
Posts: 20
Send a message via ICQ to Dead_Thinker Send a message via Yahoo to Dead_Thinker Send a message via Skype™ to Dead_Thinker
Question [Oracle] What's the best Adapter?

Hi people.

I'm implementing some apps using Oracle as database, and i want yours opinions about what DB Adapter is the best for use, the Oracle (Zend_Db_Adapter_Oracle) or PDO_OCI (Zend_Db_Adapter_Pdo_Oci)? I mean in performance, security and others elements.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-29-2008, 09:54 AM
Junior Member
 
Join Date: Apr 2008
Posts: 3
Default

I wrote a database speed test script a few weeks ago, that measured the elapsed time for running a query 5 times and iterating over the result set each time. The result set in my case contained somewhere around 13.000 rows.

I ran this three times and averaged I got these results:
- Direct Oracle: 3.30 seconds
- Direct PDO: 1.20 seconds
- ADOdb + Oracle: 5.32 seconds
- Zend_DB + Oracle: 4.11 seconds
- Zend_DB + PDO: 1.83 seconds

So I'm going with PDO.

Last edited by jsebrech : 04-29-2008 at 09:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-30-2008, 04:12 PM
Dead_Thinker's Avatar
Junior Member
 
Join Date: May 2007
Location: Fortaleza/Ceará/Brazil
Posts: 20
Send a message via ICQ to Dead_Thinker Send a message via Yahoo to Dead_Thinker Send a message via Skype™ to Dead_Thinker
Default

Hum, quite interesting, thanks for sharing this.

In another forum a guy say something diferent, but i'll check it better.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-30-2008, 08:17 PM
Dead_Thinker's Avatar
Junior Member
 
Join Date: May 2007
Location: Fortaleza/Ceará/Brazil
Posts: 20
Send a message via ICQ to Dead_Thinker Send a message via Yahoo to Dead_Thinker Send a message via Skype™ to Dead_Thinker
Default

I'm reading "The Underground PHP and Oracle Manual" and found this:

"If you want to make full use of Oracle features and want high performance use PHP’s
main Oracle extension, the OCI8 extension."

Page 13. I'm confused now ;D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-01-2008, 05:27 PM
Junior Member
 
Join Date: Apr 2008
Posts: 3
Default

Well, since it's trivially easy to switch between PDO and OCI8 when you're using Zend_DB, I suggest you build your app, and then, when it's done, benchmark it using both PDO and OCI8 as back-end engine. This way you know for sure.

All I can tell you is what I observed for my particular test case.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-01-2008, 05:38 PM
Dead_Thinker's Avatar
Junior Member
 
Join Date: May 2007
Location: Fortaleza/Ceará/Brazil
Posts: 20
Send a message via ICQ to Dead_Thinker Send a message via Yahoo to Dead_Thinker Send a message via Skype™ to Dead_Thinker
Default

Quote:
Originally Posted by jsebrech View Post
Well, since it's trivially easy to switch between PDO and OCI8 when you're using Zend_DB, I suggest you build your app, and then, when it's done, benchmark it using both PDO and OCI8 as back-end engine. This way you know for sure.

All I can tell you is what I observed for my particular test case.
Ok, and i apreciate that, thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:00 AM.