Skip to content

Commit c1110b5

Browse files
committed
fix-image-open-search
1 parent ef02272 commit c1110b5

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

20.6 KB
Loading

β€Žself-hosting/govern/advanced-search.mdxβ€Ž

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -249,26 +249,7 @@ Instead, Plane batches updates through Redis. When a signal fires, the update go
249249
The batching pattern also provides resilience. If OpenSearch is temporarily unavailable, updates accumulate in Redis and process once connectivity returns. This requires Redis 6.2+ which supports the LPOP count operation needed for efficient batch retrieval.
250250

251251
### The complete flow
252-
```
253-
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
254-
β”‚ Plane Web │────▢│ Plane API │────▢│ OpenSearch β”‚
255-
β”‚ (Search) β”‚ β”‚ (Query) β”‚ β”‚ (Indices) β”‚
256-
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
257-
β”‚
258-
β”‚ Database signals
259-
β–Ό
260-
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
261-
β”‚ Redis Queue β”‚
262-
β”‚ (Batching) β”‚
263-
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
264-
β”‚
265-
β”‚ Celery task (every 5s)
266-
β–Ό
267-
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
268-
β”‚ Celery Worker │────▢ Batch updates
269-
β”‚ (Processing) β”‚
270-
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
271-
```
252+
![OpenSeach flow](/images/open-search/opensearch-flow.webp)
272253

273254
When you search, queries bypass this synchronization process entirely. The Plane API sends your search query directly to OpenSearch, which returns results almost instantly. Your database isn't involved in search queries at all β€” this is the key to search performance.
274255

0 commit comments

Comments
Β (0)