Although there are always multiple ways to solve a single problem not always the most elegant is the best performant. Python gives a perfect tool to check primitives (or even a bit more complex) structure’s speed. This comes really handy when trying to figure out of a loop or a … Continue reading
Postgresql has really come a long way from being the standard but relatively slow database to the feature rich and extremely fast database what it is today. Supporting unstructured data (HSTORE, JSON[B]), geo function (PostGIS), full text search (TSVECTOR) it is representing a true competition to the search engines.
Looking … Continue reading
I’m a big fan of Tastypie. It gives the ability to quickly set up a restful api and focus on real development work rather than typing code all night long. So the choice was obvious when I needed REST backend for my Backbone based frontend that I’m going to use … Continue reading
Full text is a critical point when it comes to mysql. It used to have that feature in MyISAM but that’s not really maintained anymore nor it is advised to use unless you have a very specific use case in which it might make sense. There are 3rd party solution … Continue reading
It might seem weird to emphasise it so much but indeed this is the first and most important tool you have to own to successfully manage a team. This doesn’t mean you can’t say something like ‘I cannot talk about this now’ but you need to be transparent and … Continue reading
I just stumbled across a weird issue after upgrading to Django 1.6 from 1.5. The regression tests didn’t show any errors (you may say now that my regression tests weren’t covering everything, indeed they weren’t 🙂 ). I was just about to continue working on a feature I wanted when my admin site started to … Continue reading
Generating. storing and keeping inventory of hundreds of terabyte large database backups is a challenge by itself which we do on daily basis. It’s even a bigger challenge to store them encrypted which is the requirement sometimes. The backup data is being pushed through a socket generated by percona-xtrabackup. On … Continue reading
Our whole team went to the Python conference in Coventry, UK. It was a great weekend to meet like minded people, hear about other’s challenges and solutions and discuss current matters. Also we got a really nice personalised mug. 🙂
The venue was the TechnoCentre of the University of Coventry … Continue reading
There are many things why Pyhton is my standard go-to language if it comes to implement something. It’s either a website, automation, data-mining or complex calculation Python excels in most of it. I decided to write some of my favourite things which just makes things cleaner and easier to implement.
StatsComponent is now available with stats function in the suburnt Solr python client library.
More info: http://wiki.apache.org/solr/StatsComponent
from sunburnt import SolrInterface
si = SolrInterface(SOLR_URL)
si = si.query('*')
si = si.stats(fields=['price', ])
_r = si.execute()
For the source code go to my github repo: https://github.com/charlesnagy/sunburnt