Skip to main content

Navneet Kumar's Library tagged MySQL   View Popular

26 Nov 09

Top 20+ MySQL Best Practices - Nettuts+

  • adding LIMIT 1 to your query can increase performance. This way the database
    engine will stop scanning for records after it finds just 1, instead of going
    thru the whole table or index
  • The more data is read from the tables, the slower the query will become. It
    increases the time it takes for the disk operations. Also when the database
    server is separate from the web server, you will have longer network delays due
    to the data having to be transferred between the servers
  • 10 more annotations...
22 Sep 09

Java, MySql increased performance with Huge Pages

  • Just add -XX:+UseLargePages to the JVM command line to use after setting up. For CPUs that support multiple sizes, use -XX:LargePageSizeInBytes=4m to define the page size you want to use
27 Jul 09

How FriendFeed uses MySQL to store schema-less data - Bret Taylor's blog

  • making schema changes or adding indexes to a database with more than 10 - 20
    million rows completely locks the database for hours at a time. Removing old
    indexes takes just as much time, and not removing them hurts performance because
    the database will continue to read and write to those unused blocks on every
    INSERT, pushing important blocks out of memory
  • InnoDB stores data rows physically in primary key order. The
    AUTO_INCREMENT primary key ensures new entities are written
    sequentially on disk after old entities, which helps for both read and write
    locality (new entities tend to be read more frequently than old entities since
    FriendFeed pages are ordered reverse-chronologically
24 Jul 09

Nati Shalom's Blog: Scaling Out MySQL

  • MySQL becomes a scalability bottleneck because it introduces contention among
    the distributed application components. 
  • Scale your database through
    database clustering


    2. Scale your application, while
    leaving your existing database untouched by front-ending the database with
    In-Memory-Data-Grid (IMDG) or caching technologies. The database acts as a
    persistence store in the background. I refer to this approach as Persistence as
    a Service (PaaS).

  • 20 more annotations...
1 - 20 of 76 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo