Giter Site home page Giter Site logo

GCS: Bulk uploading about glific HOT 2 CLOSED

AkhileshNegi avatar AkhileshNegi commented on August 27, 2024
GCS: Bulk uploading

from glific.

Comments (2)

dlobo avatar dlobo commented on August 27, 2024

I would say, lets get a standalone script working first that does the following:

  1. To begin with assume all credentials and bucket name comes from a config file / env
  2. Given a set of ids, urls, and relative location in the bucket, do a bulk upload to GCS. Also move the files to the right location in the bucket
  3. Return a set of ids with the GCS url

Once the above is done, we can integrate with the elixir code base and then do:

  1. For each org, generate a set of ids, urls and location
  2. Call the above with the right config for the org
  3. Use the return value to set the gcs_url

from glific.

AkhileshNegi avatar AkhileshNegi commented on August 27, 2024

Closing this for now. As there were two big things we changed

  1. We were syncing outbound media to GCS also, so starting a flow with media for 1000 contacts will create 1000 new entries. So we changed the code to sync only inbound media and it is under control now
  2. We'll tweak the code to reuse same media id instead of creating new entry everytime, mentioned in this issue

from glific.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.