Coder Social home page Coder Social logo

Comments (3)

ronkorving avatar ronkorving commented on September 28, 2024

I like your tags :) The problem with this is that the index very much behaves like an === comparison. What you pass in, is what you get out. So if you index ['lekker, 'belgisch'], you would have to pass not just an identical array to match the original, but the exact reference to the array you indexed the resource with (in other words: pretty much useless).

Changing the implementation to support arrays as you suggest, seems very painful for performance (which goes counter to what we expect from an index). It may be easier in your case to keep a tag lookup map elsewhere (close to your persistence layer for example). Let me know if that poses serious challenges.

from express-rested.

ronkorving avatar ronkorving commented on September 28, 2024

Joost, can I close this issue? (if I've answered your question to your satisfaction)

from express-rested.

axit-joost avatar axit-joost commented on September 28, 2024

I found a way around this, so you can close this issue. Thanks!

from express-rested.

Related Issues (20)

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.