Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Genesys Backend Genesys Backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGRGenesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #322
Closed
Open
Issue created Sep 10, 2018 by Matija Obreza@mobrezaOwner

Admin bulk ops

The PDCI calculation was updated in 82c8bf50 yet we don't have an admin method to recalculate PDCI for the entire database.

Implement a system where an action method is provided with Accession as argument that does "something". This method is invoked by a thread pool worker that receives a batch of accession records loaded from the database based on AccessionFilter.

Use case

Update PDCI for ICARDA: provide appropriate accession filter that loads records in batches of 1000 and recalculates and updates the PDCI for each accession.

We need to be in a separate transaction so that entity manager is appropriately cleared after each batch.

Assignee
Assign to
Time tracking