Bulk endpoint performance

Hey

Having some performance issues with the bulk creation endpoint for transactions. When sending more than ~50 transactions . (with payee_name, and no payee_id) the endpoint just returns a 500 error (i assume it's hitting an internal timeout or something).

This does not happen if i send those transactions again (they return in duplicate_import_ids as expected). 

To get around this, i have added batching, but i figured you would want to be aware.  

6replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Definitely,  Scott Robertson ! I'll pass this along to Brady and let you know what I find out. 

    Like 1
  • Scott Robertson How long does it take until you get the 500 response?  Also, when you resubmit, are you submitting the same exact request payload?

    Like
  • Scott Robertson I found the problem.  The bulk endpoint handler was attempting to update the budget calculations after every transaction was saved and should have been doing it only once after all the transactions had been saved.  Thanks for letting me know about this!  We'll get the fix out on Wednesday during our normal release schedule.

    Like
      • Scott Robertson
      • syncforynab.com Founder
      • scottrobertson
      • 2 yrs ago
      • Reported - view

      Brady at YNAB Awesome :) it seems much much faster now!

      Like
      • Scott Robertson
      • syncforynab.com Founder
      • scottrobertson
      • 2 yrs ago
      • Reported - view

      Scott Robertson Although, i don't know why... since you said you have not pushed it out. Perhaps the batch stuff I added is just helping more than i thought it would ha

      Like
    • Scott Robertson Yeah, it might be 🙂.  The fix will go out tomorrow.

      Like
Like Follow
  • Status Fixed
  • 2 yrs agoLast active
  • 6Replies
  • 573Views
  • 5 Following