[Django]-BI with Django?

6šŸ‘

āœ…

Iā€™m not sure what your definition of BI is or why you assume that a BI solution requires more than one data source.

In my experience, BI means statistical analysis of data. A reporting schema, using dimensional techniques, can be the basis for it. The data is usually ETLā€™d from various transactional sources into the single, dimensional schema, which then becomes the source for all analysis.

If what Iā€™m saying is correct, then you donā€™t need multiple data sources.

Maybe another way to think about the question is: Do the ORM techniques built into Django lend themselves to modeling a dimensional star schema using objects?

šŸ‘¤duffymo

2šŸ‘

Itā€™s doable, Iā€™ve done it for my work. Canā€™t opensource it yet, Iā€™ve been able to release the heterogeneous replication app so far, but I havenā€™t given up.

I use the Django ORM for the project data, copied and pasted Djangoā€™s ā€œload_backend() functionā€ to be able to connect to more than one DB. The database used as source (companiesā€™ DB in ORACLE) for the graphs & tables is queried in raw SQL (the Django ORM would just get in the way anyways, many complex joins & aggregation).

Graphs are done with ā€˜jqPlotā€™, tables are done using ā€˜jqGridā€™. User account and auth is done using ā€˜ldap-groupsā€™ with simple patches and binded to the Active Directory tree.

The replication app is here Django-Replication and can give you an example how to connect to multiple DBs from Django. It also features time limited (expirables via a timeout) queries and concurrent queries via pythonā€™s multiprocessing & threading libraries.

ā€“Tried posting images of the app, but new users arenā€™t allowed toā€“

Leave a comment