Git Product home page Git Product logo

Comments (11)

kishorenc avatar kishorenc commented on May 15, 2024

No, this is not possible at the moment. Pluggable storage layer might be nice, but is not a priority unless more people request it.

from typesense.

hiqbn avatar hiqbn commented on May 15, 2024

would like to change it to redis how do i do that? any clues where i should be looking at?

is this the only place i need to look at?
https://github.com/typesense/typesense/blob/master/include/store.h

from typesense.

kishorenc avatar kishorenc commented on May 15, 2024

Yes store.h is the abstraction for the storage layer. Unfortunately, it does leak some implementation details at the moment like the RocksDB iterator class etc.

from typesense.

hiqbn avatar hiqbn commented on May 15, 2024

can consolidate all the functions at store.h so next time we can just change the storage layer here?

from typesense.

kishorenc avatar kishorenc commented on May 15, 2024

Yes store.h should be the interface implemented by a storage engine. And store.cpp should contain all storage related logic for RocksDB. One can create similar sub-classes for other storage engines using the same interface and initialize correspondingly.

from typesense.

hiqbn avatar hiqbn commented on May 15, 2024

i dont know how to do this but can you do it? i can contribute by making small donations

just do the redis port without multi/exec will do

from typesense.

kishorenc avatar kishorenc commented on May 15, 2024

A generic storage interface will involve quite some refactoring and testing before it is ready. It might happen in future based on priority. May I understand the need for a Redis backed storage though? Maybe there is a way to achieve what you want in an alternative manner.

from typesense.

hiqbn avatar hiqbn commented on May 15, 2024

i have redis cluster and sentinel etc set up and it's more "distributed". can you use redis as backend and without the local memory overhead? the backend will be a redis cluster.

when do you think it can be done?

from typesense.

kishorenc avatar kishorenc commented on May 15, 2024

Typesense stores the indices in-memory, so even if a Redis backend is used, the searching would require the in-memory data structures. So you will still need the Typesense server to have high availability.

from typesense.

hiqbn avatar hiqbn commented on May 15, 2024

can you rewrite it for storing the indices in redis? i can make a small donation.
there's no redisearch alternative and if it's backed by redis, this will be the best available search backed by redis other than redisearch

from typesense.

kishorenc avatar kishorenc commented on May 15, 2024

I appreciate your offer, but unfortunately it's not practical to store the indices on Redis as Typesense depends on several custom in-memory data structures.

from typesense.

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.