GithubHelp home page GithubHelp logo

searchops's People

Contributors

conradolucas avatar dependabot[bot] avatar dtamai avatar lucastomazrm avatar marinakeu avatar rafaelpierrigupy avatar rebecamorais avatar thiagosdantas avatar tiagoespanha avatar villasv avatar viniciusmaciel126 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

searchops's Issues

Upgrade to Ajv 7.x introduced critical performance issue

Commit 15bf22b introduced a performance issue.

Ajv 7.x does not serialize schemas before caching compilation results, thus the following code became dangerous:

export function getValidatorForMapping(
  mappings: ObjectMapping
): ValidateFunction<unknown> {
  return ajv.compile(translateObjectMapping(mappings));
} 

Winston missing will cause compilation error on `.d.ts` files

After removing Winston as a hard dependency, the module now may cause compilation errors if the winston peer dependency is not installed.

error TS2307: Cannot find module 'winston' or its corresponding type declarations.

1 import type { Logger } from "winston";

Remove transpiled code from repository files

It was important to enable users to install directly from GitHub, but now that the package is published, there's no reason to keep it this way. It removes the need to check for transpilation changes.

Cache JSON schemas built from index mappings

The most obvious choice is to use fast-json-stable-serialize, which is exactly what Ajv 6 did.
Even better than caching by schemas like AJV would do, it would be better to cache by mappings.

Solves #163

Purge mapping coupled methods from search service

A few methods on the SearchService class have been coupled to a particular mapping, which infects the class abstraction with a particular use case.

We should expel such code (specially getshould).

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.