3

Is there a way to develop Bi (Business Intelligence) solutions with Django? Therefore it should be possible to define models with more than one Datasource. Is anybody out there who has experienced BI with Django? How could it work ?

2 Answers 2

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?

0
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--

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.