mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
Reduce field size down to 255 utf8 characters
MySQL count 3 bytes per UTF8 character which makes the index go too large Remove indexation of appli field which is too wide for MySQL Remove use of appli index as was deleted
This commit is contained in:
@@ -351,7 +351,7 @@ class module_report_nav extends module_report
|
||||
|
||||
$sql = '
|
||||
SELECT appli
|
||||
FROM log FORCE INDEX (date_site, appli)
|
||||
FROM log FORCE INDEX (date_site)
|
||||
WHERE ' . $report_filter['sql'] . ' AND appli != \'a:0:{}\' AND !ISNULL(usrid)
|
||||
GROUP BY appli';
|
||||
|
||||
|
@@ -2882,13 +2882,6 @@
|
||||
<field>os</field>
|
||||
</fields>
|
||||
</index>
|
||||
<index>
|
||||
<name>appli</name>
|
||||
<type>INDEX</type>
|
||||
<fields>
|
||||
<field>appli</field>
|
||||
</fields>
|
||||
</index>
|
||||
<index>
|
||||
<name>res</name>
|
||||
<type>INDEX</type>
|
||||
@@ -3012,7 +3005,7 @@
|
||||
</field>
|
||||
<field>
|
||||
<name>search</name>
|
||||
<type>varchar(256)</type>
|
||||
<type>varchar(255)</type>
|
||||
<null></null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
@@ -3119,7 +3112,7 @@
|
||||
</field>
|
||||
<field>
|
||||
<name>final</name>
|
||||
<type>varchar(256)</type>
|
||||
<type>varchar(255)</type>
|
||||
<null></null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
@@ -3220,7 +3213,7 @@
|
||||
</field>
|
||||
<field>
|
||||
<name>referrer</name>
|
||||
<type>varchar(256)</type>
|
||||
<type>varchar(255)</type>
|
||||
<null></null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
@@ -3228,7 +3221,7 @@
|
||||
</field>
|
||||
<field>
|
||||
<name>site_id</name>
|
||||
<type>varchar(256)</type>
|
||||
<type>varchar(255)</type>
|
||||
<null></null>
|
||||
<extra></extra>
|
||||
<default></default>
|
||||
|
Reference in New Issue
Block a user