Code Monkey home page Code Monkey logo

nuxeo-bulkread-tester's Introduction

About

Use case

The target use case is to generate a sub tree export as fast as possible

  • fetch a lot of document in one call
  • export the documents meta-data + blobs

Constraints

If the goal is to export 1,000 (or more) documents, we have to be careful to avoid any unitary access :

  • lazy loading of DocumentModel schemas or properties
  • loading of the Blobs

Since there is currently no dedicated API to bulk fetch a schema or properties on a list of documents, we need to find a trick.

Design

POC skeleton

This code provides a POC allowing to tests different options:

  • Build a Service exposing the basic API
    • create a sub tree using the RandomImporter
    • export a sub tree (using Core.io but the point is mainly to load all properties and data)
  • Make this run in Unit test
  • Expose via JAX-RS

Leveraging ES

The first option investigated by this code is to use ES as a loading backend:

  • index Blob inside the _source using base64
    • for that we use a custom JsonESDocumentWriter
  • use a custom PageProvider to load the data
    • for usage of ES loading
    • contribute a custon EsFetcher

nuxeo-bulkread-tester's People

Contributors

tiry avatar

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.