stellar / stellar-etl

Stellar ETL will enable real-time analytics on the Stellar network
Apache License 2.0
31 stars 12 forks source link

Add the document to backfill using tx_meta #273

Closed amishas157 closed 2 months ago

amishas157 commented 2 months ago
PR Checklist ### PR Structure - [ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs). - [ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs otherwise). - [ ] This PR's title starts with the jira ticket associated with the PR. ### Thoroughness - [ ] This PR adds tests for the most critical parts of the new functionality or fixes. - [ ] I've updated the README with the added features, breaking changes, new instructions on how to use the repository. I updated the description of the fuction with the changes that were made. ### Release planning - [ ] I've decided if this PR requires a new major/minor/patch version accordingly to [semver](https://semver.org/), and I've changed the name of the BRANCH to release/_ , feature/_ or patch/\* .

What

This PR add instructions on backfill historical data using tx_meta

Why

Airflow runs can be time and money consuming. To ease up the migrations, JS UDF can be convenient.

Known limitations

To be figures: Cost of UDF (they should be cheap most likely)

amishas157 commented 2 months ago

Steps outlined in the document added in this PR. I will add screenshots and links for confirming test results

Library in GCS bucket

Screenshot 2024-07-31 at 2 41 17 PM

https://console.cloud.google.com/storage/browser/_details/stellar-test-js-udf/stellar-base.min.js;tab=live_object?project=crypto-stellar

JS UDF

https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1stest-hubble-319619!2sus-central1!3s834c1d13-e58e-40ff-90ec-a7435ec4fe42!2e1 Screenshot 2024-07-31 at 2 44 17 PM

Results confirmations:

Screenshot 2024-07-31 at 2 45 52 PM

Sample check against horizon (testnet) ✅


Next steps: