Welcome Guest, Not a member yet? Register   Sign In
Ideas for database structure / Dictionary
#8

[eluser]Crafter[/eluser]
Quote:The amount of languages is dynamic. Let’s say, somebody could add French or Chinese.

Then perhaps consider a single table multilinguage_dictionary (phrase, translated_phrase, source_lang, translated_language).

You would then have:
'to put", "setzen" ,"en", "de"
'to put", “stellen”, "en", "de"
'to put", “legen", "en", "de"

You'd have to perform some magic with indexes,and you'd probably have to use construct like database views. You'd probably have move in both directions to lookup.

Man it could be a performance nightmare, but your code will be as smooth as silk Wink

Perosnally, i don't think using a database for lexicon applications is the right way. I'd program this in a language like C, where I'd probably have to build the database structures in the heap (using pointers).


Messages In This Thread
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 07:22 AM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 07:25 AM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 07:33 AM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 10:25 AM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 10:48 AM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 12:42 PM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 12:52 PM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 01:50 PM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 02:01 PM
Ideas for database structure / Dictionary - by El Forum - 10-11-2007, 03:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB