What there is to be improved in tangram
Tangram has taken a concept very familiar to programmers in Java land to its logical completion.
This document is an attempt by the coders of Tangram to summarise the major problems that are inherant in the design, describe cases for which the Tangram metaphor does not work well, and list long standing TO-DO items.
Whilst there is no underlying fault with the query object metaphor per se, there are currently lots of queries that cannot be expressed in current versions of Tangram, and adding new parts to the language is not easy.
It could be said this is not a problem. After all, adding properties to a schema of an object is akin to declaring them as \*(L"public\*(R". Some people banter on about data access patterns, which the Tangram schema represents. But \s-1OO\s0 terms like that are usually treated as buzzwords anyway.
This optimisation has some serious dangers associated with it. It could either be
It may be possible to write a version of \*(C`$storage->select()\*(C' that does this, which would look something like:
$storage->update ( $r_object, set => [ $r_object->{bar} == $r_object->{baz} + 2 ], filter => ($r_object->{frop} != undef) );
The situation where you have a large amount of schema reshaping to do, with a complex enough data structure can turn into a fairly difficult problem. It is possible to have two Tangram stores with different schema and simply load objects from one and put them in the other - however the on-demand autoloading combined with the automatic insertion of unknown objects will result in the entire database being loaded into core if it is sufficiently interlinked.
The whole \s-1SQL\s0 expression core needs to be replaced with a \s-1SQL\s0 abstraction module that is a little better planned. For instance, there should be placeholders used in a lot more places where the code just sticks in an integer etc.
Where it is impractical or undesirable to load all of a collection into memory, when you are adding a member and then updating the container, it should be possible to This could actually be achieved with a new Tangram::Type.
For simple selects, this is too long: ...
back-refs are read-only.
Inserting lots of similar objects should be more efficient. Right now it generates a new \s-1STH\s0 for each object.
You should not need to explicitly add new classes to a schema if a superclass of them is already in the schema.