First time here? Check out the FAQ!
2

Site is slow while posting question or answer

  • retag add tags

Site is very slow while posting question and answer in my community forum developed using askbot

balu's avatar
21
balu
asked 2018-12-18 23:10:52 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

It seems the preview of the currently-being-typed post is being re-generated (including running MathJax on the whole post) at every keystroke instead of after every few keystrokes, which makes posting questions or answers extremely slow.

It would be nice if someone could figure out what to change in the source code to fix that!

slelievre's avatar
196
slelievre
answered 2019-06-10 09:45:29 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

It may be that what slows down the posting is sending email notifications to the users.

This can be resolved by a setting CELERY_ALWAYS_EAGER = False in the settings.py and running the celery task queue:

# for Askbot v < 0.10.x
python manage.py celeryd -c 10 --maxtasksperchild=1000 --time-limit=30

# for 0.10.x
celery -A config worker --time-limit=600 --concurrency=2 -l info

The celery envocation commands above are examples - you might find better parameters.

Evgeny's avatar
13.2k
Evgeny
answered 2019-06-30 15:16:43 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments