Hi i need to get all the product attributes and the count of products against each attribute option on my custom page. Filtering magento confection on the basis of attribute is taking so long . So i need direct sql query to achieve this.
Please provide me some reference or code.