Its focus isn't strictly on Bayesian statistics, so it lacks some methodology, but David MacKay's Information Theory, Inference, and Learning Algorithms made me intuitively grasp Bayesian statistics better than others - most do the how quite nicely, but I felt MacKay explained why better.

What is the best introductory Bayesian statistics textbook?
I'm writing trying to build a calendar right from scratch. I'm using the function written by David Walsh (see link) and it's great. 
He does a query for each day's cell.
But, I'm afraid that when the script's gonna have to run 30 queries in each render, it's gonna be sloooow. 

So, I was trying to think in another logic, for example, make a big query from X date to Y date at the begining of the script and then, at each day, check if that particular day has an event in the previous query. But I have no idea of how to do this...
So, if anyone can help, please shout!

Thanks.
