Code Monkey home page Code Monkey logo

Comments (8)

vikramalva avatar vikramalva commented on May 9, 2024

@zy4 Many jobs are stuck in the 'Generating output' state because of this issue. For now, I'll display a warning in the process log, when the total size of all JSONs belonging to a job is close to 16MB.

from toolkit.

zy4 avatar zy4 commented on May 9, 2024

Going to work on it. But there would be an even simpler solution. Why not storing json files in the job directory?

from toolkit.

zy4 avatar zy4 commented on May 9, 2024

storing the json in the database does only make sense if you want to get only parts out of it. but as far as I see, the json comes always in one piece.

from toolkit.

vikramalva avatar vikramalva commented on May 9, 2024

I have also been thinking the same. I guess even pagination is not going to be affected. We never seem to read the JSONs in parts. If we would only store them locally, GridFS is not even required

from toolkit.

zy4 avatar zy4 commented on May 9, 2024

Let's stick with GridFS, it gives us more options for future lazy loading features and indexing documents.

from toolkit.

vikramalva avatar vikramalva commented on May 9, 2024

I agree. Gives us more flexibility.

from toolkit.

vikramalva avatar vikramalva commented on May 9, 2024

Many jobs in the course crashed because the output JSONs were too big to be written into the database; we should perhaps switch to not storing them in the DB.

from toolkit.

zy4 avatar zy4 commented on May 9, 2024

I recommend just to store them as json files in the jobfolder. Having them in GridFS is of no advantage because the file content is not indexed. The only advantage would be to allow for easier database migrations but then we should store the whole jobfolder in GridFS which is bad for debugging. And also we never migrate the database. So I will just close this issue and reopen a new one.

from toolkit.

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.