Code Monkey home page Code Monkey logo

Comments (18)

ganey avatar ganey commented on July 21, 2024

Are you using a free Heroku deploy?

I haven't updated my instance for a few weeks so I don't have any of the latest changes between you and Ross.

Also wondering if I should wait for Pull 6 before redeploying.

Thanks for all the work you guys are putting into this!

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

I am using free heroku to test this out yeah. I would hold off on deploying just now until we work out the memory issue.

#6 is just a README update. All the actual code has been merged now :)

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

@rienafairefr do you have any ideas on this? Do you think it will be in the library? I don't see anywhere in our code that will be causing a memory leak like this after only a few syncs.

from fintech-to-ynab.

rossdargan avatar rossdargan commented on July 21, 2024

FYI on docker it sits around 280mb for my dataset.

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

How many transactions do you have?

from fintech-to-ynab.

rossdargan avatar rossdargan commented on July 21, 2024

device_knowledge_of_server 520396382

from fintech-to-ynab.

rossdargan avatar rossdargan commented on July 21, 2024

I'm going to update my docker image. I'm pretty happy with this release now on docker.

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

I can get it setup on Dockerhub if you want so that it auto builds from master?

from fintech-to-ynab.

rossdargan avatar rossdargan commented on July 21, 2024

It's up to you. might make sense. I'll keep mine up to date, but point people to yours going forward.

from fintech-to-ynab.

rienafairefr avatar rienafairefr commented on July 21, 2024

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

@rossdargan it's consistently using around 5/600. I have around 3000 transactions in YNAB. However, even 100mb for that many transactions seems insane. That would be about 30kb per transaction, which they are 100% not?

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

@rienafairefr i will do some reading into Python profiling and see if i can work out where the memory usage is coming from

from fintech-to-ynab.

rossdargan avatar rossdargan commented on July 21, 2024

@scottrobertson Mines at 260mb now. Looks like profiling will be the way forward.

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

I got rid of gunicorn, it's dropped to ~400mb from higher 500's. I will keep an eye on it.

from fintech-to-ynab.

rienafairefr avatar rienafairefr commented on July 21, 2024

As a baseline, without any data in it a Client object gives around 30-40 MB memory usage, just tested. I've created an offline client and added 5000 transactions to it, memory usage goes up to only 55 MB. A test budget with around 800 total entities, only 40-50 MB. what's taking you to hundreds of MB, this is weird..

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

Interesting. I dont know much python, so it's very likely that I am doing something stupid in my code :D

from fintech-to-ynab.

rienafairefr avatar rienafairefr commented on July 21, 2024

Just so you know, in the most recent update 0.5.2 of the library I've added a possibility to do selective sync. Instead of using client.sync, you can do:

client.sync(['be_payees'])

It's still a beta test maybe it doesnt work very well, but normally with that then the client only contains the payees without the overhead of all the user data. This might help for this issue, and maybe the other one where sync takes too much time 👍

from fintech-to-ynab.

scottrobertson avatar scottrobertson commented on July 21, 2024

Oh nice :)

I think we will still do the full sync though each time as we want the latest transactions so we can take the category from them to auto fill that.

from fintech-to-ynab.

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.