Files
danbooru/test/unit
evazion b283281e5e comments: minimize sql queries.
Certain parts of comment rendering triggered sql queries that we didn't
really need to do. Rework things to avoid this.

* Preload comment creators in order to display commenter names with link_to_user.

* Preload comment votes in order to display "undo vote" links. Only preload
  votes for members since anonymous users can't vote and don't have "undo
  vote" links.

* Rework various conditionals to do the filtering in Ruby so that we
  avoid issuing any extra queries in sql.

* Avoid issuing any queries at all when the post doesn't have any
  comments (when last_commented_at is blank).
2019-08-20 21:55:25 -05:00
..
2019-04-25 18:13:59 -07:00
2018-05-15 14:19:45 -07:00
2019-08-18 11:24:41 -05:00
2018-12-10 17:51:57 -08:00
2018-04-06 18:09:57 -07:00
2018-09-24 17:34:08 -05:00
2019-08-18 11:24:41 -05:00
2019-01-02 12:33:56 -08:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2019-08-18 11:24:41 -05:00
2018-06-20 11:11:46 -07:00
2018-05-15 14:19:45 -07:00
2019-08-18 11:24:41 -05:00