I am working on Multilingual Social Network App...
We have translation for everything in our app ...
I was wondering whats the best way to achieve it.....
Initially I thought of doing like following
(x)-[:en]->(enX)
(x)-[:fr]->(frX)
but then as we can have too many language codes in future... i prefered
(x)-[:HAS_TRANSLATION { locale: "en" }]->(LocaleOfX)
While doing this my client also wants to store the Languages that we offer in db... thus my question is which of the below three will give optimum performance and why...
Choice1
(x)-[:HAS_TRANSLATION { locale: "en" }]->(LocaleOfX)
Choice2
(x)-[:HAS_TRANSLATION]->(LocaleOfX { locale: "en" })
Choice3 (not sure of the query, but trying to establish a relation be
(x)-[:HAS_TRANSLATION]->(:Language { code: "en" })-[:HAS_LOCALE]->(LocaleOfX)
I am really confused here, so a help is needed from the experts