Ask Your Question

How to rebuild summary ?

asked 2014-04-01 11:50:15 -0500

tmonteil gravatar image

This question is related to

I want to rebuild the summary column of the askbot_post table. Because of its name, i tried to use the following manage command:

python build_thread_summary_cache

but it was not working. What is the purpose of this command ?

Then i tried the following:

python generate_post_snippets

and it worked! Hence, given the generic name of this command, my question is: what else does this command ? Can i lose some information with it ? Is it only about rebuilding some secondary informations ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-04-05 00:19:11 -0500

Evgeny gravatar image

The command generate_post_snippets generates post's HTML. The posts as you see them are stored in two fields: "summary" and "html". The first may contain a truncated version if the post is too long, otherwise it will be identical to the "html" - which is the full content of the post.

The build_thread_summary_cache will create cached html snippets for each question, as shown on the main page in the list of questions.

edit flag offensive delete link more



Thanks for the answer. So perhaps should those scripts be called in a migration scripts (the summaries were not automatically filled while migrating from a 0.7.22 install).

tmonteil gravatar imagetmonteil ( 2014-04-06 03:40:47 -0500 )edit

Your Answer

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

Add Answer

Question Tools



Asked: 2014-04-01 11:50:15 -0500

Seen: 79 times

Last updated: Apr 05 '14