Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How about add index to type column #66

Open
bscheshirwork opened this issue Nov 19, 2018 · 0 comments
Open

How about add index to type column #66

bscheshirwork opened this issue Nov 19, 2018 · 0 comments

Comments

@bscheshirwork
Copy link
Contributor

bscheshirwork commented Nov 19, 2018

We have a migration

array(
'id' => Schema::TYPE_PK,
'type' => Schema::TYPE_STRING,
'ownerId' => Schema::TYPE_STRING . ' NOT NULL',
'rank' => Schema::TYPE_INTEGER . ' NOT NULL DEFAULT 0',
'name' => Schema::TYPE_STRING,
'description' => Schema::TYPE_TEXT
)

without index of type column. This column contain a grouping index

         'galleryBehavior' => [
             'class' => GalleryBehavior::className(),
             'type' => 'product',

and contain 1~10 items of common case. Look like good idea to create index of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant