I have a fixed table that will not change. I have over 80,000 lines.
CREATE TABLE `word_list_master` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `word` varchar(64) NOT NULL, `created` int(11) NOT NULL, `frequency` int(11) NOT NULL, `number_of_files` int(11) NOT NULL, `combined_frequency` bigint(24) NOT NULL, PRIMARY KEY (`id`) )
I want to create the rank of the 7th column, which will determine the rank of the rows ordered by the combined_frequency column. I do this to reduce overhead when the database is live.
Can I do this with MySQL statements or do I need to write a bunch of SELECT / INSERT statements in PHP (for example)? I do most of the work in PHP, but it takes up to 24 hours to complete the operations on the table.
I looked at the RANK function, but since my MySQL ability was only honest, I ran into problems.
source share