Literate testing, JCite, Java, Excel for Java, Mercurial, and whatever else seems to long for a tweet.

September 06, 2006

The Gist of Palo - Erlang In Action

I have been asked to review the Palo code base. This is an open-source MOLAP database server. To get a feeling for what its core C code does, I reimplemented the gist of it in Erlang. Turns out it's really just a few lines when you have high-level functional constructs at your disposal. Out of curiosity, I then went and extended it so it really mimicks the Palo cube storage more closely, binary array searches and all (loading is still non-optimized, though). Finally, I even added a tweak that I suspect would boost Palo's performance a little. If anyone's interested, the code for loading and finalizing a cube is in cube_load.erl, the basic code for querying - possibly aggregated - cell values is in cube.erl. The latter also contains some tests showing how it's used.

0 comments:

Blog Archive