mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 14:08:33 +08:00
c5a70eca6e
We were looking up each mention one by one without any form of caching and that results in a problem somewhat similar to an N+1. When we have to do alot of DB lookups, it also increased the time spent in the V8 context which may eventually lead to a timeout. The change here makes it such that mention lookups only does a single DB query per post that happens outside of the V8 context. |
||
---|---|---|
.. | ||
emoji | ||
engines | ||
censored-words.js.es6 | ||
emoji.js.es6.erb | ||
guid.js.es6 | ||
image-short-url.js.es6 | ||
inline-oneboxer.js.es6 | ||
oneboxer.js.es6 | ||
pretty-text.js.es6 | ||
sanitizer.js.es6 | ||
white-lister.js.es6 | ||
xss.js.es6 |