SPB Git

spb/trouve-ka Public

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

Python 76.8% TypeScript 15.7% SQL 3.9% Shell 1.4% CSS 1.3% Dockerfile 0.7%
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