question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bulk data exports

See original GitHub issue

The ability to dump data from a Keystone, via the Admin UI (probably the current view). At a technical level there are two broad approches:

A) Pull the data into Node and produce a file for download

This gives us full control of the format (Excel file, CSV, JSON, etc) so is nicest for the user. We can pick columns, ordering and reference hydrated (app generated/virtual) values.

However, without some significant work (generating from a worker, batching items) this approach does not scale well. The prior art (KS4) uses this approach and i’s known to have caused outages on large sites.

B) Leverage DB platform functionality

Alternatively, we may want to leverage functionality of the underlying DB directly. Specifically…

  • mongodump can be given conditions to filter the documents dumped from a collection. Issues: single collection only, not hydrated, format is difficult to consume, dumps all fields.
  • the pgsql copy command can write queries out directly to a CSV. It may also be possible to dump JSON in this way. Less issues than mongodump; copy can query across multiple tables/views, control columns, order, format values, etc. Also it’s super fast. Locally I can dump 80k+ records (20Mb) to a CSV in under 200 ms.
  • Etc… for other DB platforms.

These tool have a much higher capacity to scale but at the cost of some flexibility (esp. Mongo). This is also something we’d need to work into the adapter framework.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
MadeByMikecommented, Sep 17, 2019

Adding hooks to the Admin UI opens a lot of doors and is becoming a higher priority

1reaction
gautamsicommented, Sep 16, 2019

for this we would need extension points for adding UI elements in admin-ui`

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overview of Bulk Data Export - Oracle Help Center
You can extract large volumes of data using bulk export. You can either extract a full set of records for an object, or...
Read more >
FHIR Bulk Data Export - HL7.org
No information is available for this page.
Read more >
HL7.FHIR.UV.BULKDATA\Bulk Data Export - FHIR v4.0.1
The Bulk Data Export Operation initiates the asynchronous generation of a requested export dataset - whether that be data for all patients, data...
Read more >
Bulk Data Export — Firely Server documentation
Firely Server provides the option to export resources with the Bulk Data Export Service. The Bulk Data Export Service enables the $export operation...
Read more >
Export Data: How to Bulk Download - IMF DATA Help
To download data:​​ Click on the Bulk Download button located next to the dataset or the Bulk Download icon in some data portals....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found