From: Giampiero Zanchi Date: 2008-11-13T01:40:33+09:00 Subject: Re: Convert text string i.e 'Peter' into integer ID > Thanks for your help. No I need to turn the string which would usually > be a headline ('Man lands on the moon') into a unique number. The > purpose is to speed up my database queries when checking whether an > entry with the same headline already exists in the db. > Justus Viewing your problem from a theoretical point of view, something similar exists in compression theory, namely arithmetic compression. Of course that is not convenient for your porpuses. -- Posted via http://www.ruby-forum.com/.