1 / 34

Scientific Databases: the story behind the scenes

Martin Kersten Milena Ivanova. Scientific Databases: the story behind the scenes. Departure for a journey. CWI Database Architecture Group Core business: To research efficient and effective database technology To deploy this technology in real-life application settings

valdemar
Download Presentation

Scientific Databases: the story behind the scenes

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Martin Kersten Milena Ivanova Scientific Databases: the story behind the scenes DIR Edinburgh

  2. Departure for a journey • CWI Database Architecture Group • Core business: • To research efficient and effective database technology • To deploy this technology in real-life application settings • To disseminate this knowledge as open-source software • Key research issues • What is the ultimate (virtual) machine architecture and software stack for database processing? DIR Edinburgh

  3. The Big Data Bang DIR Edinburgh

  4. Outline • Departure for a journey • Mapping unknown territory • Crossing the Great Divide • Stepping stone 1: Multimedia Dimension • Stepping stone 2: Geometric Dimension • Stepping stone 3: Lineage Dimension • Stepping stone 4: Heterogeneous Databases • Stepping stone 5: Semantic Search • Stepping stone 6: Wireless sensor databases • Stepping stone 7: Distributed Databases • Arrival and outlook • SciDB and SciLens ambitions • Teaming up and making it a success DIR Edinburgh

  5. DIR Edinburgh

  6. 230 million object images • 1 million spectra • 4TB catalog data • 9TB images A project to make a map of a large part of the Universe SkyServer provides public access to SDSS for astronomers, students, and wide public DIR Edinburgh

  7. SkyServer Schema Vertical fragment of 100+ popular columns 446 columns >370 million rows Materialized join of Photo and Spectra DIR Edinburgh

  8. Initial exploration DIR Edinburgh

  9. Initial exploration DIR Edinburgh

  10. Biosciences Neuroscience Astronomy Geophysics … Modelling (Atlas) … Annotations … Features Space … Geometric Mapping … Multimedia Images … Mapping unknown territory DIR Edinburgh

  11. One size fits all? NoSQL Oracle MS SQLserver DB2 Vertica MonetDB Pico scale Mega scale Postgresql Mysql, MariaDB SQLite MongoDB LucidDB Structured semi-structure documents images DIR Edinburgh

  12. We have to stand the storm DIR Edinburgh

  13. Stepping stone 1: Multimedia Dimension • Storage challenges: • Large volumes (>Tbyte, >Pbyte) of raw data • Partitioning based on image, video segmentation • Indexing based on feature vectors • Query challenges: • Proximity and probability based search • CPU intensive, user defined predicates • Content-based information retrieval DIR Edinburgh

  14. Stepping stone 1: Multimedia Dimension • The database consists of 100.000 images. • From each image we extract 25 patches • For each patch a 14-dimensional feature vector is derived 2.500.000 images • Challenge, find similar images based on Euclidian distance with sub-second response time. • Solution, novel database algorithms to solve K-nearest neighbours (k-NN) search • Lessons: start from generative models. DIR Edinburgh

  15. Stepping stone 1: Multimedia Dimension • Alternative scheme, determine the probability that an image can be generated with a limited number of Guassian mixtures • Fix a limited number of GMM and use an Expectation Maximization algorithm to fit the model over the image • Search similar images by comparison of the GMM model parameters DIR Edinburgh

  16. Probabilistic Image Dimension • Query: • Which of the models is most likely to generate these 24 samples? DIR Edinburgh

  17. Probabilistic Image Dimension ? DIR Edinburgh

  18. Stepping stone 2: Geometric Dimension • Any geometric abstraction of reality provides a good navigational map • Database storage and indexing support for 2D is mature • R-trees and Quad-trees • Commercial database vendors do ‘not like them’ • Open research issue is to support 2D query embedding • Scaling out towards 3-, 4-, dimensions and temporal support • Examples: researched extensively in Geographical Information Systems. Google-map is omnipresent or openGIS • Lessons: avoid abundance of reference models, baroque datastructures not necessarily scale DIR Edinburgh

  19. Stepping stone 3: Lineage Dimension • The problem encountered in many scientific databases is to ensure data lineage, the ability to travel back in time to understand, redo and judge the derivations. • How to keep track of the complete context? • Data, software, parameter settings,… • How to redo part of the analysis ? • How to store and remember the lineage trails? • Example: AstroWise project in Groningen keeps track of a complete workflow for telescope data analysis in a large Oracle database. All derivations are 5-line python programs. • Lesson: don’t be afraid for storage cost, be an accountant DIR Edinburgh

  20. Stepping stone 4: Heterogenous Databases • A key problem is to share heterogeneous information • Use commonly approved vocabulary and standard syntax • XML is the language inter-galactica for self-descriptive data and its exchange between software systems • RDF claims to be the next king • The database community was actively working on XML, XQuery, and Xupdate database engines, but it is not easy ! • Challenges, how to scale to large XML stores ? How to efficiently search components? How to realize structural information retrieval? • RDF world brings in graph-algorithms • Lessions: science is done, jewels are captured by bandits DIR Edinburgh

  21. Database and Informatics Working Group FBIRN 2005 – David Keator fBIRN pipeline MR scanner “big picture” XML-based events file event analysis scanner- or software-specific file formats XML-based image header image pre-processing DIR Edinburgh

  22. Stepping stone 5: Semantic search • Ontology integration is one of the most pressing challenges for the semantic web to take off. • Integration of technology with databases is still immature. • RDF and OWL are the leading paradigms, SPARQL is an attempt to bridge the gap between traditional database management and semantic web technology. • Lessons: not a technological issue, but an educational and cultural issues • http://e-culture.multimedian.nl/demo/search DIR Edinburgh

  23. Stepping stone 6: Sensor Databases • Database management functionality can be downscaled to the level of small sensor-enabled devices. They can form ad-hoq networks and provide a straightforward SQL interface for aggregation. The focus is on network based aggregation under severe energy limitations . • Embedded database systems are not up to the job. Positive case studies include TinyDB on TinyOS (Berkeley) • The DataCell project at CWI ( and Philips) aims to provide for a more expressive query language and application interface. DIR Edinburgh

  24. Research World Perspective Past Future sensor cluster Semantic Sensors mobile sensor cluster mobile integrated management stationary distributed management distributed PC-less sensor net AmbientDB sensor net DIR Edinburgh

  25. Stepping stone 7: MR/DDBMS • HPC … Grids …. Clouds … • Grids are focussed on high-performance computing with a focus on Authentication-Authorization-Access and data shipping over wide-area networks. • Map-reduce technology is a re-invention of re-scaled distributed database technology and distributed programming. • Data distribution, replication, and parallel query processing is well studied over the last 3 decades !! • Lessions: application programmers are infected by “not-written-by-me” hype bacteria DIR Edinburgh

  26. MonetDB in the large • MonetDB/Map-reduce • Pure map-reduce approach driven by query streams leading to self-organising distributed database. • MonetDB/Octopus • Dynamic partial replication of databases with economic model for reallocation and recycler technology • MonetDB/Datacyclotron • Let the database hotset flow like a stream or particles through a large and fast ring-connected machines, e.g. a data collider DIR Edinburgh

  27. Get our hands dirty Toys Tools & Techniques DIR Edinburgh

  28. The MonetDB product family End-user application XQuery SQL PHP JDBC ODBC Python Perl RoR C-mapi lib MAPI protocol MonetDB kernel

  29. The MonetDB Software Stack XQuery SQL 03 SQL/XML Optimizers SOAP Open-GIS GIS MonetDB 4 MonetDB 5 compile MonetDB kernel An advanced column-oriented DBMS DIR Edinburgh

  30. The MonetDB Software Stack • Orthogonal extension of SQL03 • Clear computational semantics • Minimal extension to MonetDB Extensions SQL 03 Optimizers MonetDB 5 MonetDB kernel An advanced column-oriented DBMS

  31. function user.s1_2(A0:date, ...):void; X5 := sql.bind("sys","lineitem",...); X10 := algebra.select(X5,A0); X12 := sql.bindIdx("sys","lineitem",...); X15 := algebra.join(X10,X12); X25 := mtime.addmonths(A1,A2); ... SQL XQuery Recycler Optimizer Tactical Optimizer function user.s1_2(A0:date, ...):void; X5 := sql.bind("sys","lineitem",...); X10 := algebra.select(X5,A0); X12 := sql.bindIdx("sys","lineitem",...); X15 := algebra.join(X10,X12); X25 := mtime.addmonths(A1,A2); ... MonetDB Kernel Recycle Pool MonetDB Recycler Architecture MAL MAL Run-time Support Admission & Eviction MonetDB Server An Architecture for Recycling Intermediates M. Ivanova, M. L. Kersten, N. Nes, R. Goncalves

  32. SciDB and SciLens projects • Design and implement a database management system better geared at the requirements of scientific applications • SciDB vision (http://www.scidb.org) • Array datamodel is missing • Distributed, map-reduce processing from the start • No-cost loading of data • … redo all the hard work from the ground up • SciLens • Multi-paradigm software layer • Database summarisation is the key • … build on the shoulders of the MonetDB team DIR Edinburgh

  33. Teaming up and making it a success Crossing the Great Divide is challenging and rewarding iff • Building the bridge starts from both ends • Parties recognize and respect each others core business Open-source database technology provides a sound basis to manage sizeable scientific databases • To capitalize and steer expertise development The database community can provide knowledge on modelling, query processing, algorithms, data structures, scalability, persistency, …and flexible database systems The MonetDB team seeks new frontiers in scalable structured database management DIR Edinburgh

  34. DIR Edinburgh

More Related