Archive

Posts Tagged ‘MySQL’

How to improve Magento Performance

April 25, 2010 Leave a comment

How to improve Magento performance? I am writing a series of posts describing different techniques for improving Magento performance. The post can be found at http://www.infotales.com/magento-performance/

The post includes different techniques like MySQL Optimization for Magento Performance and some more to come.

For more Magento related post see http://www.infotales.com/

Categories: Magento, MySQL Tags: ,

What is MySQL?

October 1, 2009 Leave a comment

Well MySQL is full featured, one of the most famous and widely used database server. MySQL is open source it means its free. Being a cross platform server its being used for different OS like Linux, Windows, MAC etc. MySQL features include support for views, stored procedures, replication etc etc.

Most of the free web applications like osCommerce, joomla, magento, durpal etc are using MySQL. MySQL is also being used by large enterprises like Yahoo, Google, FaceBook etc etc.

To see more details visit mysql.com

MySQL Performance Blog recommends SPHINX

September 13, 2009 Leave a comment

The post have been moved to new URL http://www.infotales.com/sphinx-recommended-mysql-performance-blog/

For more SPHINX related posts keep visiting my new blog

Categories: MySQL, SPHINX Tags: , , ,

Distributed searching with SPHINX

September 9, 2009 2 comments

The post have been moved to new URL http://www.infotales.com/sphinx-distributed-searching/

For more SPHINX related posts keep visiting my new blog

Index types of MySQL

August 27, 2009 Leave a comment

Indexes are important tool for speed up selects thus improving performance of your application. Indexes its self can be stored or accessed in different ways. In this post we will look on general characteristics of different type of index storing methods with respect to MySQL.

BTree indexes
btree

  • All leaves at the same distance from the root
  • Efficient insertions, deletions
  • Values are sorted
  • Efficient range scans
  • Values stored in the leaves
  • Ok for most kinds of lookups:
    • Exact full value (= xxx)
    • Range of values (BETWEEN xx AND yy)
    • Column prefix (LIKE ‘xx%’)
    • Leftmost prefix
  • Ok for sorting too
  • But
    • Not useful for ‘LIKE %xxx’ or LIKE ‘%xx%’
    • You can’t skip columns

Hash indexes

Hash table with hash and pointer to row

Hash Value
234234 Link to row 10
245335 Link to row 42
278788 Link to row 30

Drawbacks

  • Useful only for exact lookups (=, IN)
  • Not supported by InnoDB or MyISAM

Benefits

  • Very fast
  • Compact

R-Tree and T-Tree indexes

  • R-Tree Indexes
    • Same principle as B-Tree indexes
    • Used for spatial indexes
    • Requires the use of GIS functions
    • MyISAM only
  • T-Tree indexes
    • Same principle as B-Tree indexes
    • Specialized for in-memory storage engines
    • Used in NDB Cluster

by Stéphane Combaudon

Introduction to Sphinx Search

July 9, 2009 5 comments

The post have been moved to new URL http://www.infotales.com/introduction-to-sphinx-search/

For more SPHINX related posts keep visiting my new blog

Categories: MySQL, SPHINX Tags: , , ,

MySQL Fulltext stop words

June 28, 2009 2 comments

Have you ever tried to search common words like about, above, used etc using

MATCH (col1,col2,...) AGAINST (expr [search_modifier])

statement in Mysql and found that the query is not returning the proper results?

Mysql have many full-text STOP words. Stop words are different words which are ignored when searched. For example if you search “used cars” using match against statement

MATCH(description) AGAINST ('+used +cars' IN BOOLEAN MODE)

Here the ‘+’ sign indicates that each word must be present in ‘description’ field. Mysql will return results only containing ‘cars’, as it will ignore ‘used’, despite we have include it in query.

You can find full list of full text stop words here

Categories: MySQL Tags:
Follow

Get every new post delivered to your Inbox.