1 (edited by apmuthu 12/24/2014 01:24:17 pm)

Topic: Remove redundant indexes

After FrontAccounting installation and in existing installations, remove redundant indexes using:

ALTER TABLE `0_cust_branch` DROP INDEX `branch_code`;
ALTER TABLE `0_supp_trans` DROP INDEX `supplier_id`;
ALTER TABLE `0_supp_trans` DROP INDEX `type`;
ALTER TABLE `0_supp_trans` DROP INDEX `SupplierID_2`, ADD INDEX `supplier_id` (`supplier_id`, `supp_reference`);

Change table prefix as needed and apply for all companies.

Read more about it here.

Re: Remove redundant indexes

Will be fixed in version 2.4. Thanks for pointing this.
Janusz

Re: Remove redundant indexes

It's easy to remove these in v2.3 itself. It practically does not affect any table structure or break any script processing.

4 (edited by apmuthu 12/21/2014 06:42:01 am)

Re: Remove redundant indexes

Thanks for including the fix. Please correct it as per the attachment.

Post's attachments

Incomplete_Commit_Fix.png 26 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

5 (edited by apmuthu 12/24/2014 01:33:41 pm)

Re: Remove redundant indexes

It did stand full fixed.

It has now been reverted (as of 2014-12-22) due to database schema policies on minor revisions and only these changes (en_US-New.sql, en_US-demo.sql) have been moved to the Unstable v2.4 branch where further redundant indexes still exist.