473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PERFORMANCE QUESTION

I want to built a web page which is gonna have multiple languages. Which one
is the best way ? Using a Xml file to store languages and their
corresponding fields or Using a MS-SQL Database ?

What do you recommend me to have best performance about multilanguage
web-sites?
Mar 30 '06 #1
7 833
if you are worried about performance, the localized content should be stored
in the cache, which means whether you use XML or a database, the performance
will be excellent.

Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Savas Ates" <in da club> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
I want to built a web page which is gonna have multiple languages. Which
one is the best way ? Using a Xml file to store languages and their
corresponding fields or Using a MS-SQL Database ?

What do you recommend me to have best performance about multilanguage
web-sites?

Mar 30 '06 #2
It really depends. For large numbers of records, SQL will far outperform
XML. Parsing XML is a relatively slow thing. If you are going to have 10K
records with information regarding different words in different languages,
XML is going to be slow, and so will XPath.

If you have 200 records, well, maybe it doesn't matter as much.

Also, you can use Access as your database, which is file based, so similar
to an XML file in that regard.

You should look at your situation, and see what works best for you. The key
is to box up all the translation code into some methods, so if you switch
implementations, only those few methods have to change.

"Savas Ates" <in da club> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
I want to built a web page which is gonna have multiple languages. Which
one is the best way ? Using a Xml file to store languages and their
corresponding fields or Using a MS-SQL Database ?

What do you recommend me to have best performance about multilanguage
web-sites?

Mar 30 '06 #3
File I/O is simple and no network operation needed.... But again if you are
delpoying to a server, will it be easy to get deployed and get read access
or read-write for the XMLfile?

personally i will go with DB, if your application is already using a
Database for other purposes.. the reason is updating is easy... or else you
have to find ways to deploy the new XML file to the server... might be
painful sometimes..

if you don't have a DB in the app... do a XML file...

VJ

"Savas Ates" <in da club> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
I want to built a web page which is gonna have multiple languages. Which
one is the best way ? Using a Xml file to store languages and their
corresponding fields or Using a MS-SQL Database ?

What do you recommend me to have best performance about multilanguage
web-sites?

Mar 30 '06 #4
JT
There is a standardized feature in ASP.NET for binding the text properties
of web controls with alternate content, stored in XML based "resource
files", keyed on the language settings of the user's browser.
http://msdn2.microsoft.com/en-us/lib...27(VS.80).aspx
"Savas Ates" <in da club> wrote in message
news:Os**************@TK2MSFTNGP12.phx.gbl...
I want to built a web page which is gonna have multiple languages. Which
one is the best way ? Using a Xml file to store languages and their
corresponding fields or Using a MS-SQL Database ?

What do you recommend me to have best performance about multilanguage
web-sites?

Mar 30 '06 #5
Savas,

Is this real a question. Whatever system your choose is the only moment that
it can be from importance be as the user changes the language. As most use
the by IE returned standard information in what is the language and than a
Cookie if that changes, what is a one time operation. For the rest it is
equal to getting all kind of information.

Just my thought,

Cor
Mar 30 '06 #6
On Thu, 30 Mar 2006 20:22:04 +0200, "Cor Ligthert [MVP]"
<no************@planet.nl> wrote:
in <Ok**************@TK2MSFTNGP11.phx.gbl>
Savas,

Is this real a question. Whatever system your choose is the only moment that
it can be from importance be as the user changes the language. As most use
the by IE returned standard information in what is the language and than a
Cookie if that changes, what is a one time operation. For the rest it is
equal to getting all kind of information.

Just my thought,

Cor


Well, good that we cleared that one up a bit.

---
This posting is provided "AS IS" with no warranties, no guarantees, and no conferred rights.

Stefan Berglund
Mar 30 '06 #7
Yep, clear as mud (as Cor's posts usually are, from memory).

--
*mike hodgson*
http://sqlnerd.blogspot.com

Stefan Berglund wrote:
On Thu, 30 Mar 2006 20:22:04 +0200, "Cor Ligthert [MVP]"
<no************@planet.nl> wrote:
in <Ok**************@TK2MSFTNGP11.phx.gbl>
Savas,

Is this real a question. Whatever system your choose is the only moment that
it can be from importance be as the user changes the language. As most use
the by IE returned standard information in what is the language and than a
Cookie if that changes, what is a one time operation. For the rest it is
equal to getting all kind of information.

Just my thought,

Cor


Well, good that we cleared that one up a bit.

---
This posting is provided "AS IS" with no warranties, no guarantees, and no conferred rights.

Stefan Berglund


Mar 30 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Randell D. | last post by:
Folks, I have a Javascript performance question that I might have problems explaining... In PHP, better performance can be obtained dealing directly with a variable, as opposed to an element...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
4
by: Martin | last post by:
I am using graphics as backgrounds for forms,buttons,labels etc. The question is: is it faster to load all graphics from files on app start or to use it embeded (places in editor during design)....
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
6
by: Mike | last post by:
Lets just say my app is done HOO HOO. Now, I'm accessing the database via a web service and one thing i noticed that my app is running real slow. When I first started working on the app is ran...
18
by: Rune B | last post by:
Hi Group I was considering using a Generic Dictionary<> as a value container inside my business objects, for the reason of keeping track of fields changed or added and so on. - But how...
5
by: Varangian | last post by:
Hi, I have a performance issue question? which is best (in terms of efficiency and performance, I don't care neatness in code)... building an ArrayList of Object Instances using SqlDataReader...
5
by: Markus Ernst | last post by:
Hello A class that composes the output of shop-related data gets some info from the main shop class. Now I wonder whether it is faster to store the info in the output class or get it from the...
5
by: toton | last post by:
Hi, I want a few of my class to overload from a base class, where the base class contains common functionality. This is to avoid repetition of code, and may be reducing amount of code in binary,...
30
by: galiorenye | last post by:
Hi, Given this code: A** ppA = new A*; A *pA = NULL; for(int i = 0; i < 10; ++i) { pA = ppA; //do something with pA
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.