SPB Git forge

spb/trouve-ka

Public ★ Pinned

Trouve-KA — moteur de recherche web indépendant, Québec-first. Crawler distribué, index OpenSearch, ranking bilingue, galerie d'images. En prod : www.trouve-ka.com

40commits 1branches 0releases
9.2 MBsize
maindefault branch
23 days agolast push
Python 51.9% TypeScript 32.7% JavaScript 4.8% CSS 4.1% Shell 2.9% HTML 1.8% SQL 1.5%
576 B · 18 lines sql
Raw Blame History
1-- Trouve-KA — migration 002 : index de claim par priorité2-- Author: Simon-Pierre Boucher3-- Contact: contact@spboucher.ai4--5-- Le claim ordonne par priority DESC; l'index 001 (next_crawl_at, priority)6-- force un tri de toutes les lignes dues à chaque claim. Cet index sert7-- l'ORDER BY directement (la plupart des lignes pending sont dues).89BEGIN;1011CREATE INDEX IF NOT EXISTS idx_frontier_priority12    ON frontier_items (priority DESC, next_crawl_at)13    WHERE status = 'pending';1415INSERT INTO schema_migrations (version) VALUES (2) ON CONFLICT DO NOTHING;1617COMMIT;18