Giter Club home page Giter Club logo

Comments (9)

peakji avatar peakji commented on June 14, 2024 2

We are currently implementing a in-memory storage and will work on adding relational database support when it is stable.

from ratus.

peakji avatar peakji commented on June 14, 2024 1

Update: the in-memory store is available in v0.3.0, and now we have a roadmap for adding more storage engines.

from ratus.

peakji avatar peakji commented on June 14, 2024 1

@zeina1i The roadmap is just a rough plan, and contributions of any kind are always welcome!

In fact, I don't have much experience with Postgres, so I haven't started working on the relevant parts yet. If you are interested in implementing support for a new storage engine, you can refer to the engine package. And if the test cases in testsuite all pass, then it should work properly.

from ratus.

c-nv-s avatar c-nv-s commented on June 14, 2024 1

not sure why I didn't think of this earlier, but I'll see if I can test this with https://github.com/FerretDB/FerretDB sometime next week.
Hopefully it will serve as a stop-gap until the final implementation.

from ratus.

c-nv-s avatar c-nv-s commented on June 14, 2024 1

still hoping this feature can be progressed...
the intended workaround using ferretdb seems dependent on them developing the TimeToLive functionality but that ticket seems low priority at the moment, so integrating the feature directly in ratus still seems like the best approach at the moment

from ratus.

zeina1i avatar zeina1i commented on June 14, 2024

Hi @peakji
Are you going to define tasks for the roadmap items, and if we are interested,could we be involved?
Thanks

from ratus.

c-nv-s avatar c-nv-s commented on June 14, 2024

@zeina1i did you decide to have a look?

from ratus.

zeina1i avatar zeina1i commented on June 14, 2024

@c-nv-s unfortunately currently I don't have enough time to be involved.

from ratus.

c-nv-s avatar c-nv-s commented on June 14, 2024

just to update on this...
unfortunately not all features worked because it looks like the ferretdb team haven't yet implemented how to handle the hint query functionality from mongodb yet
here is the docker-compose.yml file I used:

services:
  postgres:
    image: postgres
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=password
      - POSTGRES_DB=ferretdb
    volumes:
      - ./data:/var/lib/postgresql/data

  ferretdb:
    image: ghcr.io/ferretdb/ferretdb
    ports:
      - 27017:27017
    environment:
      - FERRETDB_POSTGRESQL_URL=postgres://postgres:password@postgres:5432/ferretdb

  ratus:
    image: hyperonym/ratus:0.6.2
    restart: unless-stopped
    depends_on:
      - ferretdb
    environment:
      ENGINE: "mongodb"
      MONGODB_URI: "mongodb://ferretdb:27017"
      MONGODB_DATABASE: "ferretdb"
      MONGODB_COLLECTION: "tasks"
      MONGODB_RETENTION_PERIOD: "72h"
    ports:
      - "8000:80"

networks:
  default:
    name: ferretdb

and you have to remember to add the ferretdb database to your search_path when in psql
I did this using: ALTER ROLE postgres SET search_path = "$user", public, ferretdb ;

from ratus.

Related Issues (5)

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.