I need help with deciding on a DB design approach. We're building a translation tool with Hanami (Ruby web framework) and thus ROM. We are facing the design decision of having one DB (Postgresql) table for translation records, where each record is for one source and one target language combination. However, source and target may be any language: EN-DE, FR-EN.
The other possibility would be DB table per language pair.
We currently have about 1.500.000 legacy records. We will not reach 2.000.000 soon, but still, we need to consider it.
We are inclined to the first option, but would it be feasible in terms of querying and performance? The main difference being, for option one matching languages must be queried first, and then the query for corresponding translation string is triggered.
Would there be a significant difference in performance for between both options?
Thank you
seba