I recently started my first Dancer & MongoDB project. MongoDB is my preferred database (at the moment) and Dancer is a great framework, but something is missing: I really prefer using an ORM and didn’t find anything for MongoDB which fits my needs. (weiterlesen …)
There are few better ways for taking a SQL server down than SELECT … JOIN statements. Don’t get me wrong – a good JOIN could really fast, but huge JOIN blocks adding 10 or more foreign tables maybe even without using indexes could easily slow down the biggest SQL server. MongoDB has MapReduce to do the job with much less server impact – but more developer brain usage. (weiterlesen …)
The Tie::Hash::MongoDB from scratch using Padre" href="http://www.pal-blog.de/entwicklung/perl/2011/creating-tiehashmongodb-from-scratch-using-padre.html">first part of this guide explained how to create the skeleton of the new module and how to create the backend for tie’ing a hash to a MongoDB document.
This second part will finish the job by putting some useful code into the skeleton methods. (weiterlesen …)
Perl’s hash is very powerful, it stores any kind of data, but it’s kept in memory and this is not always wanted. The powerful “tie” function binds a hash to a Perl module which could do whatever_it_wants with the data.
Today I’ld like to show you how easy a has could be connected to a database. A module which connects a hash to SQL is already on CPAN, so let’s go with MongoDB. (weiterlesen …)