J
James Dinkel
I need to store some information with my ruby program and I am not sure
on what would be the best method. I'm mostly concerned about what would
be the most efficient use of cpu resources.
Basically, I will have a list of names each belonging to one of 5
categories. Sort of like this:
Cat1
-name1
-name2
-name3
-etc...
Cat2
-name4
-name5
-name6
-etc...
Cat3
-name7
-name8
-name9
-etc...
There will be hundreds of names, evenly divided between the categories.
But each name will go in only one category, there is no relation between
categories or anything like that. All the information will be
completely rewritten once a day and then read several times throughout
the day.
My choices for storage are an sqlite database (using ActiveRecord), a
flat text file of my own design, a YAML file, or an XML file.
on what would be the best method. I'm mostly concerned about what would
be the most efficient use of cpu resources.
Basically, I will have a list of names each belonging to one of 5
categories. Sort of like this:
Cat1
-name1
-name2
-name3
-etc...
Cat2
-name4
-name5
-name6
-etc...
Cat3
-name7
-name8
-name9
-etc...
There will be hundreds of names, evenly divided between the categories.
But each name will go in only one category, there is no relation between
categories or anything like that. All the information will be
completely rewritten once a day and then read several times throughout
the day.
My choices for storage are an sqlite database (using ActiveRecord), a
flat text file of my own design, a YAML file, or an XML file.