Web Design Forums

Database Systems Help

Discussion and help on database systems such as MySQL, MSSql, SQLite, PostgreSQL

mySQL vs. Oracle



Site of the Month Voting - Now Open. CAST YOUR VOTE NOW!

Reply
 
LinkBack Thread Tools
Old June 26 '03, 10:57 PM (#1)
Wired is offline
WDF Alien Overlord
 
Wired's Avatar
 
Join Date: April 2003
Posts: 6,369
Wired is just really niceWired is just really niceWired is just really niceWired is just really nice
Send a message via AIM to Wired
mySQL vs. Oracle

I was talking to a friend earlier, and they said that if you do a query on 300,000 entries on both databases, mySQL will take about 4 min, while Oracle will take only about 2 seconds.

Does anyone know if this is true and/or why this is true / false?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 27 '03, 12:32 AM (#2)
Brak is offline
Rockstar
 
Brak's Avatar
 
Join Date: April 2003
Location: San Francisco, CA
Posts: 3,413
Brak will become famous soon enough
Send a message via ICQ to Brak Send a message via AIM to Brak Send a message via MSN to Brak Send a message via Yahoo to Brak
That is false.

Oracle is a complete database solution while MySQL is a very basic but EXTREMELY fast database. They're two entirely different things and should be considered for the application they're being used in.


Also, personally I've run queries on a MySQL db with about 800k records and it NEVER takes 4 mn... I think 30sec was our max and this was on a crappy machine with a complicated query.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 27 '03, 10:14 AM (#3)
smoseley is online now
WDF Moderator
 
smoseley's Avatar
 
Join Date: March 2003
Location: Miami, FL
Posts: 8,719
smoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud of
Well.... having used BOTH in extreme situations (millions of records with complex joins), I can add a little to this.

MySQL is fast for straight queries. Throw a join into the mix and it's slower. Throw a multi-dimensional join in, and you're dead meat. it could easily peg you down to 4 minutes. I could run a query on MySQL for 300,000 records that would take over an hour (a row-inequality self-hash, for example)

Oracle, with sub-select capabilities and stored procedures for compiled, optimized queries, and clustered indexing for faster joins on indexes is an incredible difference (for someone who knows how to use it). Its downside is that it's very difficult to learn. If you do learn it, though, you can VERY feasibly turn a 4 minute MySQL query into a 2 second procedure.

Last edited by smoseley; June 27 '03 at 10:14 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 27 '03, 10:16 AM (#4)
smoseley is online now
WDF Moderator
 
smoseley's Avatar
 
Join Date: March 2003
Location: Miami, FL
Posts: 8,719
smoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud of
The bottom line is that MySQL is fine for straight querying.

When you want to get into complex queries or reporting, though... start thinking about Oracle or MS-SQL.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » Database Systems Help

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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


 
User Infomation
Your Avatar

Site Of The Month
Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:02 PM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164