SlideShare a Scribd company logo
1 of 22
Download to read offline
Transient Detection
and SQL
Gijs Molenaar
!

Anton Pannekoek Institute (UvA)
!

@gijzelaerr
gijs@pythonic.nl
LOFAR
•

Radio telescope

•

~10–240 MHz

•

Software telescope

•

omni-directional
AARTFAAC
•

Lofar sub project

•

24/7 full sky transient
detection

•

‘Changes’

•

99% Python code
Transients
•

Super-nova

•

Gamma-ray burst

•

Pulsars

•

exo-planets

•

?
Images
•

10-240 MHz

•

Split in 10 bands

•

1 image cube per second

•

future 10 images per second
Data
•

Source

•

Position

•

Flux (intensity)

•

Shape (2d gaussian)
Data rate

•

500 - 5000 inserts per second

•

Higher in other modes
Calculations

•

Associate in frequency

•

Associate in time
Quite a lot of data

•

move calculations to data (base)
nonosql
•

Structured data

•

Natural sharding by
sky position

•

MonetDB
Why MonetDB
•

Dutch (CWI)

•

Fast with huge
datasets

•

Developers next door
calculations to data

•

No moving around data

•

one huge big monolithic query per ‘operation’
Example
HORRIBLE
•

Huge monolithic queries

•

hard to read

•

hard to reason about

•

hard to test

•

hard to maintain

•

hard to port
Solution?

•

Functions?
NO!
•

DB revisions, versioning hell

•

For every code change new version

•

Schema migrations

•

Init functions on startup?

•

DB specific
SOLUTION
Why?
•

Object Relational Mapper

•

Better Query Builder Language!

•

Support multiple database dialect

•

Functions per dialect
!

•

SQLAlchemy -> SQL is like C -> assembler
example
Why not earlier?

•

Started by non programmers

•

No MonetDB dialect for SQLAlchemy
sqlalchemy-monetdb
•

pip install sqlalchemy-monetdb

•

https://github.com/gijzelaerr/sqlalchemy-monetdb

•

https://github.com/gijzelaerr/djonet

•

(banana)
Questions?

More Related Content

What's hot

Batch Indexing & Near Real Time, keeping things fast
Batch Indexing & Near Real Time, keeping things fastBatch Indexing & Near Real Time, keeping things fast
Batch Indexing & Near Real Time, keeping things fast
Marc Sturlese
 

What's hot (9)

Cypher for Apache Spark
Cypher for Apache SparkCypher for Apache Spark
Cypher for Apache Spark
 
The Search for Gravitational Waves
The Search for Gravitational WavesThe Search for Gravitational Waves
The Search for Gravitational Waves
 
InfluxDb and Grafana fighting with data
InfluxDb and Grafana fighting with dataInfluxDb and Grafana fighting with data
InfluxDb and Grafana fighting with data
 
Keynote: Stephan Ewen - Stream Processing as a Foundational Paradigm and Apac...
Keynote: Stephan Ewen - Stream Processing as a Foundational Paradigm and Apac...Keynote: Stephan Ewen - Stream Processing as a Foundational Paradigm and Apac...
Keynote: Stephan Ewen - Stream Processing as a Foundational Paradigm and Apac...
 
Thorny path to the Large-Scale Graph Processing (Highload++, 2014)
Thorny path to the Large-Scale Graph Processing (Highload++, 2014)Thorny path to the Large-Scale Graph Processing (Highload++, 2014)
Thorny path to the Large-Scale Graph Processing (Highload++, 2014)
 
Detecting gravitational waves in Python
Detecting gravitational waves in PythonDetecting gravitational waves in Python
Detecting gravitational waves in Python
 
Tsunami alerting with Cassandra (From 0 to Cassandra on AWS in 30 days)
Tsunami alerting with Cassandra (From 0 to Cassandra on AWS in 30 days)Tsunami alerting with Cassandra (From 0 to Cassandra on AWS in 30 days)
Tsunami alerting with Cassandra (From 0 to Cassandra on AWS in 30 days)
 
Batch Indexing & Near Real Time, keeping things fast
Batch Indexing & Near Real Time, keeping things fastBatch Indexing & Near Real Time, keeping things fast
Batch Indexing & Near Real Time, keeping things fast
 
How a Particle Accelerator Monitors Scientific Experiments Using InfluxDB
How a Particle Accelerator Monitors Scientific Experiments Using InfluxDBHow a Particle Accelerator Monitors Scientific Experiments Using InfluxDB
How a Particle Accelerator Monitors Scientific Experiments Using InfluxDB
 

Viewers also liked

LOFAR - finding transients in the radio spectrum
LOFAR - finding transients in the radio spectrumLOFAR - finding transients in the radio spectrum
LOFAR - finding transients in the radio spectrum
Gijs Molenaar
 
1.lineamientos avances dra.calle
1.lineamientos avances dra.calle1.lineamientos avances dra.calle
1.lineamientos avances dra.calle
seni Mestas
 
Mercadeo ii
Mercadeo iiMercadeo ii
Mercadeo ii
anfevasa
 
Fa 27 assignment 4 part 2
Fa 27 assignment 4 part 2 Fa 27 assignment 4 part 2
Fa 27 assignment 4 part 2
zgalasso
 
01 semillas de sabiduria.pdf
01 semillas de sabiduria.pdf01 semillas de sabiduria.pdf
01 semillas de sabiduria.pdf
Karen Johnson
 
Audacity paso a paso
Audacity paso a pasoAudacity paso a paso
Audacity paso a paso
armandobaleon
 
01 semillas de sabiduria.pdf
01 semillas de sabiduria.pdf01 semillas de sabiduria.pdf
01 semillas de sabiduria.pdf
Karen Johnson
 

Viewers also liked (20)

награды Казак Т.В.
награды Казак Т.В.награды Казак Т.В.
награды Казак Т.В.
 
презентация
презентацияпрезентация
презентация
 
издания
изданияиздания
издания
 
мир увлечений семьи казак
мир увлечений семьи казакмир увлечений семьи казак
мир увлечений семьи казак
 
WHO yuta aikawa
WHO yuta aikawaWHO yuta aikawa
WHO yuta aikawa
 
Анна Ивановна
Анна ИвановнаАнна Ивановна
Анна Ивановна
 
Give back
Give backGive back
Give back
 
папа, мама, я педагогическая семья (казак)
папа, мама, я   педагогическая семья (казак)папа, мама, я   педагогическая семья (казак)
папа, мама, я педагогическая семья (казак)
 
TRAP (transient detection pipeline) status update
TRAP (transient detection pipeline) status updateTRAP (transient detection pipeline) status update
TRAP (transient detection pipeline) status update
 
LOFAR - finding transients in the radio spectrum
LOFAR - finding transients in the radio spectrumLOFAR - finding transients in the radio spectrum
LOFAR - finding transients in the radio spectrum
 
Лагерь "Солнышко" Зима 2012- 2013
Лагерь "Солнышко" Зима 2012- 2013Лагерь "Солнышко" Зима 2012- 2013
Лагерь "Солнышко" Зима 2012- 2013
 
1.lineamientos avances dra.calle
1.lineamientos avances dra.calle1.lineamientos avances dra.calle
1.lineamientos avances dra.calle
 
Avance 1
Avance 1Avance 1
Avance 1
 
Mercadeo ii
Mercadeo iiMercadeo ii
Mercadeo ii
 
Fa 27 assignment 4 part 2
Fa 27 assignment 4 part 2 Fa 27 assignment 4 part 2
Fa 27 assignment 4 part 2
 
01 semillas de sabiduria.pdf
01 semillas de sabiduria.pdf01 semillas de sabiduria.pdf
01 semillas de sabiduria.pdf
 
The Detroit Sound Book
The Detroit Sound BookThe Detroit Sound Book
The Detroit Sound Book
 
Audacity paso a paso
Audacity paso a pasoAudacity paso a paso
Audacity paso a paso
 
01 semillas de sabiduria.pdf
01 semillas de sabiduria.pdf01 semillas de sabiduria.pdf
01 semillas de sabiduria.pdf
 
Audacity paso a paso como editar
Audacity paso a paso como editarAudacity paso a paso como editar
Audacity paso a paso como editar
 

Similar to Python User Group November 2013, SQL(alchemy) and transient detection

VO web-services-based astronomy workflows
VO web-services-based astronomy workflowsVO web-services-based astronomy workflows
VO web-services-based astronomy workflows
Jose Enrique Ruiz
 
Melbourne Big Data Meetup Talk: Scaling a Real-Time Anomaly Detection Applica...
Melbourne Big Data Meetup Talk: Scaling a Real-Time Anomaly Detection Applica...Melbourne Big Data Meetup Talk: Scaling a Real-Time Anomaly Detection Applica...
Melbourne Big Data Meetup Talk: Scaling a Real-Time Anomaly Detection Applica...
Paul Brebner
 
Lofar python meetup jan9 2013
Lofar python meetup jan9 2013Lofar python meetup jan9 2013
Lofar python meetup jan9 2013
Gijs Molenaar
 
Web services based workflows to deal with 3D data
Web services based workflows to deal with 3D dataWeb services based workflows to deal with 3D data
Web services based workflows to deal with 3D data
Jose Enrique Ruiz
 

Similar to Python User Group November 2013, SQL(alchemy) and transient detection (14)

The Next CERN Accelerator Logging Service—A Road to Big Data with Jakub Wozni...
The Next CERN Accelerator Logging Service—A Road to Big Data with Jakub Wozni...The Next CERN Accelerator Logging Service—A Road to Big Data with Jakub Wozni...
The Next CERN Accelerator Logging Service—A Road to Big Data with Jakub Wozni...
 
Geospatial Rectification of Web Transactions and Data Security
Geospatial Rectification of Web Transactions and Data SecurityGeospatial Rectification of Web Transactions and Data Security
Geospatial Rectification of Web Transactions and Data Security
 
VO web-services-based astronomy workflows
VO web-services-based astronomy workflowsVO web-services-based astronomy workflows
VO web-services-based astronomy workflows
 
Quantum Computing with Amazon Braket
Quantum Computing with Amazon BraketQuantum Computing with Amazon Braket
Quantum Computing with Amazon Braket
 
Big Data Day LA 2015 - Big Data Day LA 2015 - Applying GeoSpatial Analytics u...
Big Data Day LA 2015 - Big Data Day LA 2015 - Applying GeoSpatial Analytics u...Big Data Day LA 2015 - Big Data Day LA 2015 - Applying GeoSpatial Analytics u...
Big Data Day LA 2015 - Big Data Day LA 2015 - Applying GeoSpatial Analytics u...
 
Melbourne Big Data Meetup Talk: Scaling a Real-Time Anomaly Detection Applica...
Melbourne Big Data Meetup Talk: Scaling a Real-Time Anomaly Detection Applica...Melbourne Big Data Meetup Talk: Scaling a Real-Time Anomaly Detection Applica...
Melbourne Big Data Meetup Talk: Scaling a Real-Time Anomaly Detection Applica...
 
Lofar python meetup jan9 2013
Lofar python meetup jan9 2013Lofar python meetup jan9 2013
Lofar python meetup jan9 2013
 
SR-IOV: The Key Enabling Technology for Fully Virtualized HPC Clusters
SR-IOV: The Key Enabling Technology for Fully Virtualized HPC ClustersSR-IOV: The Key Enabling Technology for Fully Virtualized HPC Clusters
SR-IOV: The Key Enabling Technology for Fully Virtualized HPC Clusters
 
TraitCapture: NextGen Monitoring and Visualization from seed to ecosystem
TraitCapture: NextGen Monitoring and Visualization from seed to ecosystemTraitCapture: NextGen Monitoring and Visualization from seed to ecosystem
TraitCapture: NextGen Monitoring and Visualization from seed to ecosystem
 
Defcon 23 - colby moore - spread spectrum satcom hacking
Defcon 23 - colby moore - spread spectrum satcom hackingDefcon 23 - colby moore - spread spectrum satcom hacking
Defcon 23 - colby moore - spread spectrum satcom hacking
 
Bring Satellite and Drone Imagery into your Data Science Workflows
Bring Satellite and Drone Imagery into your Data Science WorkflowsBring Satellite and Drone Imagery into your Data Science Workflows
Bring Satellite and Drone Imagery into your Data Science Workflows
 
Web services based workflows to deal with 3D data
Web services based workflows to deal with 3D dataWeb services based workflows to deal with 3D data
Web services based workflows to deal with 3D data
 
DataStax and Esri: Geotemporal IoT Search and Analytics
DataStax and Esri: Geotemporal IoT Search and AnalyticsDataStax and Esri: Geotemporal IoT Search and Analytics
DataStax and Esri: Geotemporal IoT Search and Analytics
 
Elevation mapping using stereo vision enabled heterogeneous multi-agent robot...
Elevation mapping using stereo vision enabled heterogeneous multi-agent robot...Elevation mapping using stereo vision enabled heterogeneous multi-agent robot...
Elevation mapping using stereo vision enabled heterogeneous multi-agent robot...
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Python User Group November 2013, SQL(alchemy) and transient detection