How do I Store / Access Translations Efficiently?

Posted by Gilbert on Stack Overflow See other posts from Stack Overflow or by Gilbert
Published on 2009-05-21T22:42:09Z Indexed on 2010/04/14 14:03 UTC
Read the original article Hit count: 286

I am trying to translate some of the phrases of my website into various languages. so, in my database, I have a table with rows of

ID//text//dest_language//text_in_dest_language

At the moment, I retreive each translation one by one:

get text_in_dest_language where text="Hello World" and dest_languge="zh"

This results in 40-50 db calls per page, which, on the app engine, is rather slow.

What can I do to mitigate this slowdown?

© Stack Overflow or respective owner

Related posts about database

Related posts about internationalization