postgresql.search.SearchVectorField() Feedback

46 views
Skip to first unread message

Lex Berezhny

unread,
Dec 12, 2016, 10:30:10 AM12/12/16
to django-d...@googlegroups.com
Hello,

I've added managed triggers for SearchVectorField() which will automatically update the column in postgres every time an insert or update is performed on a model containing this field (by default to_tsvector() is only called if the fields to be indexed are actually changed).

If you are using SearchVectorField() without arguments then it is completely backwards compatible with current version. A trigger is created only if you supply a list of weighted columns as an argument.

Please take a look at my pull request and let me know if there are any issues with my implementation:


Thank you,

 Lex
Reply all
Reply to author
Forward
0 new messages