Files
danbooru/config/locales/en.yml
evazion 1653392361 posts: stop updating fav_string attribute.
Stop updating the fav_string attribute on posts. The column still exists
on the table, but is no longer used or updated.

Like the pool_string in 7d503f08, the fav_string was used in the past to
facilitate `fav:X` searches. Posts had a hidden fav_string column that
contained a list of every user who favorited the post. These were
treated like fake hidden tags on the post so that a search for `fav:X`
was treated like a tag search.

The fav_string attribute has been unused for search purposes for a while
now. It was only kept because of technicalities that required
departitioning the favorites table first (340e1008e) before it could be
removed. Basically, removing favorites with `@favorite.destroy` was
slow because Rails always deletes object by ID, but we didn't have an
index on favorites.id, and we couldn't easily add one until the
favorites table was departitioned.

Fixes #4652. See https://github.com/danbooru/danbooru/issues/4652#issuecomment-754993802
for more discussion of issues caused by the fav_string (in short: write
amplification, post table bloat, and favorite inconsistency problems).
2021-10-09 22:36:26 -05:00

81 lines
1.9 KiB
YAML

# Files in the config/locales directory are used for internationalization
# and are automatically loaded by Rails. If you want to use locales other
# than English, add the necessary files in this directory.
#
# To use the locales, use `I18n.t`:
#
# I18n.t 'hello'
#
# In views, this is aliased to just `t`:
#
# <%= t('hello') %>
#
# To use a different locale, set it with `I18n.locale`:
#
# I18n.locale = :es
#
# This would use the information in config/locales/es.yml.
#
# The following keys must be escaped otherwise they will not be retrieved by
# the default I18n backend:
#
# true, false, on, off, yes, no
#
# Instead, surround them with single quotes.
#
# en:
# 'true': 'foo'
#
# To learn more, please read the Rails Internationalization guide
# available at http://guides.rubyonrails.org/i18n.html.
en:
hello: "Hello world"
activerecord:
attributes:
artist_url:
url: ""
favorite:
user: "You"
user_id: "You"
forum_post_vote:
creator_id: "Your vote"
moderation_report:
creator: "You"
post:
approver: "You"
approver_id: "You"
updater_id: "You"
uploader: "You"
uploader_id: "You"
post_flag:
creator: "You"
creator_id: "You"
post_vote:
user: "You"
user_id: "You"
post_appeal:
creator: "You"
creator_id: "You"
post_disapproval:
user: "You"
user_id: "You"
comment_vote:
user_id: "You"
upload:
uploader: "You"
uploader_id: "You"
user_feedback:
creator: "You"
creator_id: "You"
saved_search:
user: "You"
user_id: "You"
errors:
models:
tag_implication:
attributes:
antecedent_name:
taken: "Implication already exists"
format: "%{message}"