Jump to content

Binary Database VS. MySQL Database


The Little Guy

Recommended Posts

I downloaded database that is binary, it is only about 30MB, there is the exact same database that I downloaded (from the same website just different format) that is CVS, and I converted it to a mysql database and it is over a 1GB in size. Why did searching for the same thing in the mysql database take 30+ seconds to do, and less than 1 second in the binary database?

 

website:

http://www.maxmind.com/app/geolitecity

Both binary and CVS downloads are on this page.

Link to comment
Share on other sites

Did you do anything to optimize your query in MySQL?  Create relevant indexes, etc?  Or are you comparing a highly tuned compiled data source to a fresh drop of a CSV in MySQL?

 

Tuned properly, MySQL should be able to query as fast as the C++ library, though MySQL will always be a much bigger footprint as it gives you a whole lot of other things the C++ library doesn't.

Link to comment
Share on other sites

C++ VS. PHP

 

Why is C++ so much faster than PHP? When a language or program appeals to novices, it loses speed. Why do you think PHP/MySQL are very popular? ( Also why else would I be using PHP/MySQL?  ;D)

 

MySQL isn't written in neither PHP nor C++, so your point is irrelevant. The querying speed on the MySQL database vs. the querying speed on the binary version of the database is the subject here. The API for querying the binary version is available in a multitude of languages, including PHP.

Link to comment
Share on other sites

I see my anology wasn't clearly said.

 

The anology was 'does not appeal to novices':'appeals to novices'::'does not appeal to novices':'appeals to novices'

 

My point is MySQL, like PHP, adds alot of flexibility at the price of speed. Not that MySQL is written in one language or another.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.