Coder Social home page Coder Social logo

fttb slow response time about framework HOT 6 CLOSED

UserZHTW avatar UserZHTW commented on June 10, 2024
fttb slow response time

from framework.

Comments (6)

luceos avatar luceos commented on June 10, 2024

Please provide output of php flarum info as requested, but do it on discuss first:

https://discuss.flarum.org/d/32646-fttb-slow-response-time

from framework.

davwheat avatar davwheat commented on June 10, 2024

If I had to guess, it'd probably be due to the notification count attribute rather than loading of the notifications themselves

from framework.

UserZHTW avatar UserZHTW commented on June 10, 2024

If I had to guess, it'd probably be due to the notification count attribute rather than loading of the notifications themselves

I read all the notifications, but the response is still very slow. Only by delete all notifications, the server response will be faster

from framework.

SychO9 avatar SychO9 commented on June 10, 2024

I have yet to confirm, but this may be due to using property_exists before calling disussion_id, I just noticed it wouldn't detect magically added properties, so that was a bad change in 1.7

https://github.com/flarum/framework/blob/main/framework/core/src/Api/Controller/ListNotificationsController.php#L116

from framework.

SychO9 avatar SychO9 commented on June 10, 2024

Looking at the notifications logic, I don't see how this could happen, notifications are paginated, and loading the count is not a resource-intensive query. This could be a bad extension.

from framework.

UserZHTW avatar UserZHTW commented on June 10, 2024

Looking at the notifications logic, I don't see how this could happen, notifications are paginated, and loading the count is not a resource-intensive query. This could be a bad extension.

I turned off all extensions and the problem still exists
Still need to delete all notifications to speed up web page access

未命名

Flarum core: 1.8.3
PHP version: 8.1.26

+--------------------------------+----------+--------+
| Flarum Extensions              |          |        |
+--------------------------------+----------+--------+
| ID                             | Version  | Commit |
+--------------------------------+----------+--------+
| flarum-flags                   | v1.8.0   |        |
| flarum-approval                | v1.8.1   |        |
| flarum-tags                    | v1.8.0   |        |
| kater-lang-traditional-chinese | dev-main |        |
| flarum-suspend                 | v1.8.1   |        |
| flarum-subscriptions           | v1.8.0   |        |
| flarum-sticky                  | v1.8.0   |        |
| flarum-statistics              | v1.8.0   |        |
| flarum-nicknames               | v1.8.0   |        |
| flarum-mentions                | v1.8.2   |        |
| flarum-markdown                | v1.8.0   |        |
| flarum-lock                    | v1.8.0   |        |
| flarum-lang-english            | v1.8.0   |        |
| flarum-emoji                   | v1.8.0   |        |
| flarum-bbcode                  | v1.8.0   |        |
+--------------------------------+----------+--------+

from framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.