Giter Club home page Giter Club logo

Comments (5)

jsgm avatar jsgm commented on September 15, 2024 1

@jsgm Just to plan my activities, are you going to work on this? If you are busy, I'll put this on my todo list :=)

Sorry for the delay! A bit busy this week, feel free to put it in your todo list. In any case still looking forward to further contributions 😃

from clover.

ostafen avatar ostafen commented on September 15, 2024

Hi, jsgm, first of all thank you for the nice suggestion.

How to handle the conversion specially for bigger databases. Possible bottlenecks?

Regarding this point, I think that conversion should be performed in a cleaver way than simply calling json.Marshal on a document slice. I think that, in order to serialize large collections efficiently, documents should be progressively serialized and written to the exported file.

Use one just single file or multiple files. Maybe both options?

I think that it is fine to start by implementing a db.ExportCollection(collectionName, exportPath) function, which allow to export a single collection in a json file with the same name of the collection itself.
Then, by using this function, we could also implement an additional ExportDatabase(folderPath) function, exporting each collection inside a folder.
In the last case, we could also reason about an option for exporting the entire database in a single file (but this could also be added in a second step).

from clover.

ostafen avatar ostafen commented on September 15, 2024

@jsgm Just to plan my activities, are you going to work on this? If you are busy, I'll put this on my todo list :=)

from clover.

ostafen avatar ostafen commented on September 15, 2024

There is no rush, if you are interested in this ;=)

from clover.

jsgm avatar jsgm commented on September 15, 2024

There is no rush, if you are interested in this ;=)

Thanks for your patient. If there's no rush I can definitely go with this. Starting today!

from clover.

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.