Giter VIP home page Giter VIP logo

smartsearch's People

Contributors

rressi avatar

Watchers

 avatar  avatar

smartsearch's Issues

Implement scalability tests

Story

We should implement tests to measure how well smartsearch components are scaling with a growing number of documents.

Method '/docs' should let the client chose if compression is necessary

Story

One of lasts commits have introduced a nice feature that applies gzip compression on the fly to returned lists of documents.

This have drastically improved performances on many browsers like Chrome or Safari but broken our demo application with Explorer or Edge.

Looks like Explorer and Edge are simply not decompressing the data, they try to parse them as a stream of JSON directly. Of course they fail.

Solution

A possible, and elegant solution, can be to let the client choice to have the documents compressed or not.

Let's imagine to revert method /docs as it was before and to add another identical method /docs.gz that is obtained by decorating the first with a gzip encoding.

On the client side we can test the current browser's capabilities and decide what method use.

This would also make us easier to test and to compare time to time the 2 different solutions. For example have no sense to use compression if we have only few documents to return.

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.