mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 13:03:45 +08:00
070eac16a8
Instead of relying on the `ILIKE` operator to filter out image links, we can instead rely on the `TopicLink#extension` column which allows us to more efficiently filter out image links. This optimization mainly affects topics that are link heavy which is common in topics with alot of replies. When profiling a production instance for a topic with 10K replies and 2.5K `topic_links`, this optimization reduces the query time from ~18ms to around ~4ms. |
||
---|---|---|
.. | ||
assets | ||
controllers | ||
helpers | ||
jobs | ||
mailers | ||
models | ||
serializers | ||
services | ||
views |