Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-05-2020 01:38 AM
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
Solved! Go to Solution.
03-11-2020 09:35 AM
Hey @mithun.das,
For my money, Choice 3 is my preferred approach.
Here are a few reasons:
FWIW, that's my 2 cents.
-yyyguy
03-11-2020 09:35 AM
Hey @mithun.das,
For my money, Choice 3 is my preferred approach.
Here are a few reasons:
FWIW, that's my 2 cents.
-yyyguy
03-11-2020 02:40 PM
Thank you sir... I am doing this exact modelling but was a bit confused if I am over complicating it or not.
But your response asured me.... especially the indexing point was something that was completely out of mind. Thank you.
All the sessions of the conference are now available online