Ask Your Question
2

Site is slow while posting question or answer

asked 2018-12-18 23:10:52 -0500

balu's avatar

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2019-06-30 15:16:43 -0500

Evgeny's avatar

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.

edit flag offensive delete link more
0

answered 2019-06-10 09:45:29 -0500

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!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-12-18 23:10:52 -0500

Seen: 36,765 times

Last updated: Jun 30 '19