First time here? Check out the FAQ!
2

Site is slow while posting question or answer
 

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
balu's avatar
21
balu
asked 6 years ago

Comments

see more comments

2 Answers

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 5 years ago
link

Comments

see more comments
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!

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
slelievre's avatar
196
slelievre
answered 5 years ago
link

Comments

see more comments