How to efficiently and efficiently perform online translations?

I am trying to translate some phrases on my site into different languages. so in my database i have a table with rows

ID // Text // dest_language // text_in_dest_language

At the moment I am returning each translation every time:

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

This results in 40-50 dB calls per page, which is quite slow in the application engine.

What can I do to reduce this slowdown?

0


a source to share


1 answer


  • Load them at the application server level (in ASP.NET you can store it in an Application object or in a Session object).

or



  1. Make one database call to get a single set of records for all phrases used on the page.
+1


a source







All Articles