Using Elasticsearch to serve the largest data base of building performance and attribute data in the world. Working with the U.S. Department of Energy and Lawrence Berkeley National Laboratory, Building Energy(buildingenergy.com) developed and manages the largest database in the world of building performance and attribute data and provide statistical and analytical methods via a web app and API.
(not just for text search)
Buildings use a LOT of energy
• Buildings use more energy than any other sector in the US!
• 23% wasted energy*
• $1.2 Trillion wasted
• 40% of GHG wasted(1.1 gigatons annually)**
• What’s the miles per gallon of your ofﬁce building?
• So how are buildings like mine performing?
• How are my peers’ buildings performing?
*McKinsey & Co: “Unlocking energy efﬁciency in the US economy”
**equivalent to the entire US ﬂeet of passenger vehicles and lights trucks
The Buildings Performance
• With the US DOE, LBNL, we make one of the largest
datasets of building data available (by statistical methods)
• Developer API which enables people to build their own
visualizations and develop fully customized applications
• Expose the DOE Building Energy Performance Taxonomy
through “ﬁlters”, the standard for describing buildings
• Provide a decision support tool
• 755k buildings +
• We were choking on data with our previous solution
• It’s not just for text search
• Fast access to a denormalized set of data
• django-haystack integration into our Django stack
• It’s built to scale!
• Custom ES backend for django-haystack to add the new ES
features, hope these make it to haystack someday
• Three queries per search to get stats, percentiles, and
histogram. Room for improvement/ES scripts
• Easy to set up in dev and prod, django-haystack keeps ES
and postgres in sync.
• An order of magnitude speed improvement :-)