Новости Joomla

Человек на GitHub ускорил Joomla в 600 раз на объёме 150к+ материалов в 1700+ категориях

Человек на GitHub ускорил Joomla в 600 раз на объёме 150к+ материалов в 1700+ категориях

👩‍💻 Человек на GitHub ускорил Joomla в 600 раз на объёме 150к+ материалов в 1700+ категориях. На старте его сайт на Joomla 3 вообще не смог обновиться на Joomla 5. Пришлось делать экспорт/импорт материалов. Проделав всё это он запустил-таки этот объём данных на Joomla 5. Тестовый скрипт грузил 200 материалов из этого объёма всего за 94 секунды ))) А главная страница с категориями грузилась 20 секунд. Добавив индекс для таблицы #__content

CREATE INDEX idx_catid_state ON #__content (catid, state);
он сократил время загрузки категорий до 1 секунды. Затем наш герой решил поковырять SQL-запрос в ArticleModel, который отвечает за выборку материалов. И решил заменить тип JOIN на STRAIGHT_JOIN для категорий.
// ->from($db->quoteName('#__content', 'a'))->from(    $db->quoteName('#__content', 'a')    . ' STRAIGHT_JOIN ' . $db->quoteName('#__categories', 'c')    . ' ON ' . $db->quoteName('c.id') . ' = ' . $db->quoteName('a.catid'))// ->join('LEFT', $db->quoteName('#__categories', 'c'), $db->quoteName('c.id') . ' = ' . $db->quoteName('a.catid'))
Что сократило загрузку 200 материалов из 150к с 94 секунд до 5. К слову сказать, боевой сайт на Joomla 3 крутится на 12CPU 64GB рамы. А все манипуляции с кодом он делает на базовом 1CPU 1GB сервере и замеры скорости даны именно для базового сервера. Но это всё в дискуссии, хотя в идеале должно вылиться в Pull Requests. Мы - Open Source сообщество, где никто никому ничего не должен. Джунгли. Но человек ищет пути оптимизации Joomla и предлагает решения. Если оказать поддержку и предложить помощь хотя бы с тестированием самых разнообразных сценариев, то возможно эти улучшения смогут войти в ядро. Пусть не быстро, пусть через несколько лет, пусть не все, но войдут. Достаточно предложить руку помощи и приложить немного усилий.
Дискуссию на GitHub можно почитать здесь.@joomlafeed#joomla #community #php

0 Пользователей и 1 Гость просматривают эту тему.
  • 4 Ответов
  • 1366 Просмотров
*

intcorp

  • Захожу иногда
  • 456
  • 12 / 0
Сегодня на сайте на Joomla 1.5.20 повылазили ошибки
Код
Warning: include() [function.include]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 184

Deprecated: Assigning the return value of new by reference is deprecated in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 184

Warning: include() [function.include]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 193

Deprecated: Assigning the return value of new by reference is deprecated in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 193

Warning: include() [function.include]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 217

Deprecated: Assigning the return value of new by reference is deprecated in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 217

Warning: include() [function.include]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 226

Deprecated: Assigning the return value of new by reference is deprecated in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 226

Warning: split() [function.split]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 459

Deprecated: Function split() is deprecated in /home/u1635/public_html/plugins/system/jfrouter.php on line 459

Warning: split() [function.split]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 459

Deprecated: Function split() is deprecated in /home/u1635/public_html/plugins/system/jfrouter.php on line 459

Warning: setcookie() [function.setcookie]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 315

Warning: Cannot modify header information - headers already sent by (output started at /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php:184) in /home/u1635/public_html/plugins/system/jfrouter.php on line 315

Warning: setcookie() [function.setcookie]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 316

Warning: Cannot modify header information - headers already sent by (output started at /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php:184) in /home/u1635/public_html/plugins/system/jfrouter.php on line 316

Warning: setcookie() [function.setcookie]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 317

Warning: Cannot modify header information - headers already sent by (output started at /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php:184) in /home/u1635/public_html/plugins/system/jfrouter.php on line 317
______________________________
Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/libraries/joomla/utilities/date.php on line 56

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/libraries/joomla/utilities/date.php on line 56

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/libraries/joomla/utilities/date.php on line 198

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/libraries/joomla/utilities/date.php on line 198

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/libraries/joomla/utilities/date.php on line 198

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/libraries/joomla/utilities/date.php on line 198

С чего бы это?
*

intcorp

  • Захожу иногда
  • 456
  • 12 / 0
Re: Вылезли ошибки временных зон
« Ответ #1 : 15.03.2011, 12:49:45 »
Удалил JoomFish часть ошибок ушла
Код
Warning: include() [function.include]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 184

Deprecated: Assigning the return value of new by reference is deprecated in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 184

Warning: include() [function.include]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 193

Deprecated: Assigning the return value of new by reference is deprecated in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 193

Warning: include() [function.include]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 217

Deprecated: Assigning the return value of new by reference is deprecated in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 217

Warning: include() [function.include]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 226

Deprecated: Assigning the return value of new by reference is deprecated in /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php on line 226

Warning: split() [function.split]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 459

Deprecated: Function split() is deprecated in /home/u1635/public_html/plugins/system/jfrouter.php on line 459

Warning: split() [function.split]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 459

Deprecated: Function split() is deprecated in /home/u1635/public_html/plugins/system/jfrouter.php on line 459

Warning: setcookie() [function.setcookie]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 315

Warning: Cannot modify header information - headers already sent by (output started at /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php:184) in /home/u1635/public_html/plugins/system/jfrouter.php on line 315

Warning: setcookie() [function.setcookie]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 316

Warning: Cannot modify header information - headers already sent by (output started at /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php:184) in /home/u1635/public_html/plugins/system/jfrouter.php on line 316

Warning: setcookie() [function.setcookie]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /home/u1635/public_html/plugins/system/jfrouter.php on line 317

Warning: Cannot modify header information - headers already sent by (output started at /home/u1635/public_html/administrator/components/com_joomfish/classes/JoomfishManager.class.php:184) in /home/u1635/public_html/plugins/system/jfrouter.php on line 317

*

intcorp

  • Захожу иногда
  • 456
  • 12 / 0
Re: Вылезли ошибки временных зон
« Ответ #2 : 15.03.2011, 13:03:26 »
Полистал англоязычные форумы, походу дела проблема на сервере...
*

SmokerMan

  • Гуру
  • 5290
  • 720 / 26
Re: Вылезли ошибки временных зон
« Ответ #3 : 15.03.2011, 13:05:21 »
С чего бы это?
c PHP => 5.3
gogle в помощь "date_default_timezone_set"
*

intcorp

  • Захожу иногда
  • 456
  • 12 / 0
Re: Вылезли ошибки временных зон
« Ответ #4 : 15.03.2011, 13:34:40 »
Спасибо) В чем причина определился, поддержка хоста уже работает)
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Ошибки кодировки после обновления БД

Автор JohnGonzo

Ответов: 2
Просмотров: 2116
Последний ответ 12.04.2016, 09:11:03
от JohnGonzo
Ошибки на сайте. Прошу помощи

Автор SenyaKulia

Ответов: 14
Просмотров: 4623
Последний ответ 15.06.2014, 10:54:09
от kirin
Белый экран. Ошибки в админке. Не работает сайт

Автор Малышка

Ответов: 10
Просмотров: 2527
Последний ответ 25.05.2014, 11:23:17
от altvvc
Не устанавливаются компоненты. Ошибки JFTP::chmod: Bad response

Автор xxx87

Ответов: 5
Просмотров: 4282
Последний ответ 12.07.2013, 03:25:26
от Olesea
Перешел на новую php, появились ошибки

Автор spd

Ответов: 1
Просмотров: 2054
Последний ответ 27.04.2013, 12:05:37
от wishlight