From: Hal Fulton Date: 2005-10-30T03:11:19+09:00 Subject: Re: The "perfect" ORM? James Edward Gray II wrote: > On Oct 28, 2005, at 4:47 PM, rubyhacker@gmail.com wrote: > >> I want to do as little specification as possible to store my objects. > > > I just have to say first that I've really enjoyed reading these > planning messages of yours Hal. It's clear you have a vision and know > what you want. I can't wait to see the results. > > That said, I don't understand the full vision, so forgive my dumb > question. > > The whole time I'm reading your posts though I keep thinking you just > want: > > File.open("objects", "w") do |file| Marshal.dump(whatever, file) end > > Or YAML. Or PStore if you also want transactions. > > Can you explain how what you want differs from this? Not a dumb question at all. And I wouldn't dignify my ideas as a "vision" yet. If it works well, I'll retroactively dub it a vision. ;) Basically the only thing missing from a YAML solution or something is the ability to do sophisticated queries without storing all the objects in memory at once. Given that I may have 100,000 objects or so, I don't want to store them all in a giant array, but I *do* want to be able to find them by the values of their accessors. Make sense? Hal