Skip to content

[DO NOT MERGE] Redis experiments #7417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from
Draft

Conversation

SimonSapin
Copy link
Contributor

@SimonSapin SimonSapin commented May 6, 2025

Run with cargo run -p redis-experiments

Example output on a laptop with local redis-server:

100 entries…
… inserted (one by one) in 58 ms
… invalidated (in batch) in 1 ms

1000 entries…
… inserted (one by one) in 261 ms
… invalidated (in batch) in 7 ms

10000 entries…
… inserted (one by one) in 2244 ms
… invalidated (in batch) in 63 ms

100000 entries…
… inserted (one by one) in 19019 ms
… invalidated (in batch) in 1211 ms

Done!

This requires the RediSearch module to be enabled. On macOS:

Install version 8.0.0 from https://github.com/redis/homebrew-redis:

brew tap redis/redis
brew install --cask redis

Start the server:

/opt/homebrew/bin/redis-server --loadmodule /opt/homebrew/lib/redis/modules/redisearch.so --save ""

(Unrelated drive-by advice: --save "" make the database in-memory only and not persisted on disk.)

Run with `cargo run -p redis-experiments`

Example output on a laptop with local `redis-server`:

```
100 entries…
… inserted (one by one) in 58 ms
… invalidated (in batch) in 1 ms

1000 entries…
… inserted (one by one) in 261 ms
… invalidated (in batch) in 7 ms

10000 entries…
… inserted (one by one) in 2244 ms
… invalidated (in batch) in 63 ms

100000 entries…
… inserted (one by one) in 19019 ms
… invalidated (in batch) in 1211 ms

Done!
```
Copy link
Contributor

github-actions bot commented May 6, 2025

@SimonSapin, please consider creating a changeset entry in /.changesets/. These instructions describe the process and tooling.

@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented May 6, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 76050c3c05bf8a67516d7fe6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants