#4745 Use new artifact session extension in webapp

v1.0.0
closed
nobody
None
General
nobody
2015-08-20
2012-08-20
No

[#4577] introduced the BatchIndexer extension for the artifact session, specifically for use in migrations. Next step is to use the new extension in the Allura webapp.

  1. Move BatchIndexer and the substitute_extensions context manager into the Allura code base.
  2. Instantiate artifact_orm_session with BatchIndexer instead of ArtifactSessionExtension.
  3. Subclass or otherwise modify MingMiddleware to flush BatchIndexer at the end of a web request.
  4. Modify base script command to flush BatchIndexer at the end of a script run.

Related

Tickets: #6825

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-10-08

    We should also use it during the reindex command

     
  • Dave Brondsema

    Dave Brondsema - 2014-03-13
    • status: open --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2014-03-13

    BatchIndexer has already been moved to the Allura codebase and is used during improt tasks. Using it in web requests is not going to help much since not my artifacts are added in a normal request, and there are not normally multiple session flush() calls anyway.

     

Log in to post a comment.