J
Jason Crystal
Hey all,
I was wondering if there was a general consensus for whether it's faster
to do repetitive queries solely through Ruby (as on an array), or to
make multiple calls to a SQL database of some sort.
For example, if I have a dictionary, and I know I need to compare an
entire paragraph's worth of words to the dictionary, should I query each
word against the database? Or load the entire dictionary into a Ruby
object and index against that?
Thanks for your thoughts!
-Jason
I was wondering if there was a general consensus for whether it's faster
to do repetitive queries solely through Ruby (as on an array), or to
make multiple calls to a SQL database of some sort.
For example, if I have a dictionary, and I know I need to compare an
entire paragraph's worth of words to the dictionary, should I query each
word against the database? Or load the entire dictionary into a Ruby
object and index against that?
Thanks for your thoughts!
-Jason