gundb / feature-requests

What extra features do you want for gun? Discuss here!
10 stars 0 forks source link

GUN to Relational Database for Reporting features #32

Open merarischroeder opened 5 years ago

merarischroeder commented 5 years ago

Feature request.

There are no major reporting engines that support GUN (nor most NoSQL DB systems). My solution for this kind of issue is to:

  1. Architect the NoSQL database, treating each collection like a table, with only a single tier deep of records; AND
  2. Have a general software system that subscribes to each collection, and inserts/updates records in a relational database.

I'm sure many coders can repeat [2], and do it in all kinds of mind-bending ways. But ideally, each NoSQL vendor does this kind of thing once and well. I'm sure there are unique features with each NoSQL database system to ensure the integrity and timeliness of relational reporting data.

(Also, there's a chance to use a streaming SQL language so that special reporting results tables can be built live, and aggregate results can be maintained for ready near-instant access.)

This might be a key feature that's missing to enable widespread adoption. With an adaptor to a relational database, most reporting engines will be able to READ from such relational databases for business reporting needs { Dashboards, Emailed PDF reports, adhoc reporting, etc }

It would be best if a "GUN-PostgreSQL" (for example) adaptor project could be managed alongside the core GUN project(s).

Benefits:

(If you think of any more benefits please comment, and I'll add them to the OP list here)

Thanks.

amark commented 5 years ago

Thanks!!