Roedy Green schrieb:
> On Thu, 10 May 2012 19:50:54 -0300, Arved Sandstrom
> <> wrote, quoted or indirectly quoted
> someone who said :
>
>> http://martinfowler.com/bliki/OrmHate.html
>>
>> Given some of the threads we've had...
>
> Object/Relational mapping = ORM
>
> We are very close to the point for many problems when you can store
> your entire database in RAM or Flash RAM. It would seem to me, that
> should spawn a new set of tools for managing data that don't have to
> worry about fine tuning access times.
>
> I also think there should be a database that deals with Java objects,
> that lets you iterate using ordinary java for : each loops. If the
> whole thing were designed with a Java API in mind, surely it should be
> able to do more that SQL with much less futzing.
You got the Collection classes in Java. You can
more or less map an SQL query on that if you have
your objects in the memory.
But what this doesn't buy you are indexes, respectively
automatic indexing as databases do nowadays. It is
very tediuous to manually have indexes and also doesn't
make your domain model easily extensible.
I have worked on a solution for an interpreted language
and came up with an automatic indexing scheme.
Initially it did only speed up the access. Recently
I have also worked out relative quick updates on the
data (*). Problem is a little bit to not throw away the
indexes too quickly. And having logical cursor like
access is also challenging.
I also went for a custom implementation of some of
the Collection classes, to have the algorithms not
use iterators, but inline loops for speed. Isn't
possible with the existing classes since one cannot
access the fields. Also the custom classes automatically
shrink the indexes, what the normal Collection classes
don't do.
Overall implementation size of the indexer:
- 9 Classes
I think indexes, or what has often been called access
paths, in one way or the other are always key to
databases. The problem carries over to memory
based solutions. But one can do with a library
of only a few classes for memory.
Bye
(*)
https://plus.google.com/u/0/b/103259...ts/FtcxQBCudjU