gravitystorm left a comment (openstreetmap/openstreetmap-website#6566)
I don't understand the overall strategy here.
* If the list of words is always going to come from a static data file, and the
spam scorer doesn't do any joins (it's just doing the equivalent of a `SELECT *
from spammy_phrases` at the moment) then perhaps we should be using
frozen_records? This will load them on app boot. It's what we do for the
communities.
* If admins are going to be able to add/remove phrases individually, through
some sort of UI, or if they are somehow being used in joins or other queries,
then it makes sense to have a database table.
But from what I understand, we're trying to make the half-way house - the
phrases are in the db, but then we want to just load them read-only from a data
file. Is that right?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6566#issuecomment-3597759040
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/issues/6566/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev