Skip to content

Commit

Permalink
add index to sef_url and order->invoice_id fields to speed up searches
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Jan 17, 2018
1 parent 2f60b12 commit 9542fd7
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 11 deletions.
3 changes: 2 additions & 1 deletion framework/modules/blog/definitions/blog.php
Expand Up @@ -30,7 +30,8 @@
DB_FIELD_LEN=>200),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200),
DB_FIELD_LEN=>200,
DB_INDEX=>10),
'canonical'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>800),
Expand Down
3 changes: 2 additions & 1 deletion framework/modules/core/definitions/expCats.php
Expand Up @@ -30,7 +30,8 @@
DB_FIELD_LEN=>200),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200),
DB_FIELD_LEN=>200,
DB_INDEX=>10),
'rank'=>array(
DB_FIELD_TYPE=>DB_DEF_INTEGER),
'module'=>array(
Expand Down
3 changes: 2 additions & 1 deletion framework/modules/core/definitions/expTags.php
Expand Up @@ -30,7 +30,8 @@
DB_FIELD_LEN=>100),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200)
DB_FIELD_LEN=>200,
DB_INDEX=>10)
);

?>
3 changes: 2 additions & 1 deletion framework/modules/ecommerce/definitions/orders.php
Expand Up @@ -27,7 +27,8 @@
DB_INCREMENT => true
),
'invoice_id' => array(
DB_FIELD_TYPE => DB_DEF_INTEGER
DB_FIELD_TYPE => DB_DEF_INTEGER,
DB_INDEX => 10
),
'user_id' => array(
DB_FIELD_TYPE => DB_DEF_ID,
Expand Down
2 changes: 1 addition & 1 deletion framework/modules/ecommerce/definitions/product.php
Expand Up @@ -71,7 +71,7 @@
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>150,
// DB_INDEX=>10,
DB_INDEX=>10,
// DB_FULLTEXT=>true
),
'canonical'=>array(
Expand Down
3 changes: 2 additions & 1 deletion framework/modules/filedownloads/definitions/filedownload.php
Expand Up @@ -30,7 +30,8 @@
DB_FIELD_LEN=>200),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200),
DB_FIELD_LEN=>200,
DB_INDEX=>10),
'canonical'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>800),
Expand Down
3 changes: 2 additions & 1 deletion framework/modules/help/definitions/help.php
Expand Up @@ -63,7 +63,8 @@
DB_FIELD_TYPE=>DB_DEF_INTEGER),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200),
DB_FIELD_LEN=>200,
DB_INDEX=>10),
'canonical'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>800),
Expand Down
3 changes: 2 additions & 1 deletion framework/modules/news/definitions/news.php
Expand Up @@ -30,7 +30,8 @@
DB_FIELD_LEN=>200),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200),
DB_FIELD_LEN=>200,
DB_INDEX=>10),
'canonical'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>800),
Expand Down
3 changes: 2 additions & 1 deletion framework/modules/photoalbum/definitions/photo.php
Expand Up @@ -33,7 +33,8 @@
DB_FIELD_LEN=>200),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200),
DB_FIELD_LEN=>200,
DB_INDEX=>10),
'canonical'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>800),
Expand Down
3 changes: 2 additions & 1 deletion framework/modules/portfolio/definitions/portfolio.php
Expand Up @@ -30,7 +30,8 @@
DB_FIELD_LEN=>200),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200),
DB_FIELD_LEN=>200,
DB_INDEX=>10),
'canonical'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>800),
Expand Down
3 changes: 2 additions & 1 deletion framework/modules/rss/definitions/expRss.php
Expand Up @@ -38,7 +38,8 @@
DB_FIELD_LEN=>200),
'sef_url'=>array(
DB_FIELD_TYPE=>DB_DEF_STRING,
DB_FIELD_LEN=>200),
DB_FIELD_LEN=>200,
DB_INDEX=>10),
// 'feed_title'=>array(
// DB_FIELD_TYPE=>DB_DEF_STRING,
// DB_FIELD_LEN=>200),
Expand Down

0 comments on commit 9542fd7

Please sign in to comment.