-
Notifications
You must be signed in to change notification settings - Fork 0
Ruby on Rails migration to do mass attribute indexing on MySql
hmasing/Mass-Indexing
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This migration will convert your mysql tables to INNODB, and create indexes on commonly indexed fields.
These fields are defined in @fields_to_index. ie:
@fields_to_index = ['name', 'value', 'type', '_id', 'sku', 'is_', '_at', '_on', 'email',
'postal', 'zip', 'state', 'country', 'position', 'login', 'bin', 'controller',
'action', 'token', 'code', 'uuid', 'guid', 'gender', 'link']
NOTE:
You probably want to have your mysql database store a file for each table for INNODB. This is NOT the default.
The settings for /etc/my.cnf
[mysqld]
innodb_file_per_table
default_storage_engine=INNODB
About
Ruby on Rails migration to do mass attribute indexing on MySql
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published