Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Document: Deferred Insert | GoodFirstPicks

Document: Deferred Insert

frappe/frappe 10 comments 1mo ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeFrappe / ERPNextPython

Why this is a good first issue

Issue involves understanding and modifying deferred insert behavior with unclear setup requirements.

AI Summary

The issue involves modifying the behavior of deferred inserts in Frappe, specifically addressing the arbitrary limit of 500 records per queue and the resetting of document creation times. It requires understanding of Frappe's caching mechanism and potential architectural changes to ensure persistence. The setup and testing requirements are not fully clear.

Issue Description

  • save_to_db only dumps a maximum of 500 records per queue into the Database hourly.

    Restricting to 500 (arbitrary & very low number) leads to starvation when you're pushing records in higher volumes. We could easily just let the job flush as many records as it can instead?

  • Document creation is reset

    Since doc.insert is used within the deferred_insert API, the creation time is reset during DB insert. Essentially we end up re-writing the original information.

GitHub Labels

buggood first issue

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!

Risk Flags

  • requires understanding of frappe.cache and redis
  • potential architectural implications
Loading labels...

Details

Points20 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedno