Page MenuHomePhabricator

Allow the fulltext index to select only transactions with comments
ClosedPublic

Authored by epriestley on Sep 28 2017, 7:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 9:29 PM
Unknown Object (File)
Sat, Nov 23, 8:23 PM
Unknown Object (File)
Fri, Nov 22, 11:44 PM
Unknown Object (File)
Thu, Nov 21, 5:40 AM
Unknown Object (File)
Wed, Nov 20, 1:53 PM
Unknown Object (File)
Sun, Nov 17, 6:11 AM
Unknown Object (File)
Mon, Nov 11, 5:57 AM
Unknown Object (File)
Wed, Nov 6, 10:47 PM
Subscribers
None

Details

Summary

Ref T12997. Although we can't query by transaction type (since we can't easily enumerate all possible types which may have comments -- inline types may also have comments), we can just check if there's a comment row or not.

This reduces the amount of garbage we need to load to rebuild indexes for unusual objects with hundreds and hundreds of mentions.

Test Plan
  • Used batch editor to mention a task 700 times.
  • Indexed it before and after this change, saw index time drop from 1600ms160ms.
  • Made some new comments on it, verified that they still indexed/queried properly.
  • Browsed around, made normal transactions, made inline comments.
  • Added a unique word to an inline comment, indexed revision, searched for word, found revision.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Sep 28 2017, 7:54 PM
This revision was automatically updated to reflect the committed changes.
epriestley mentioned this in Unknown Object (Maniphest Task).Sep 28 2017, 7:57 PM