CatgirlIntelligenceAgency/code
Viktor Lofgren f58a9f46be (loader) Don't truncate the entire links table on load
This behavior is an old vestige from the days of only having a single loader process.  We'd truncate the links table because doing inserts/updates was too slow.  This was also important because we had 32 bit ID, and there's a lot of links between domains to go around...

Instead we delete the rows associated with the current node with a stored procedure PURGE_LINKS_TABLE.

We also update the PRIMARY KEY to a BIGINT.  We'll need to load the data in excess of billion times to hit an ID rollover, so it'll be fine.
2023-11-16 10:30:12 +01:00
..
api (metrics) Get prometheus up out of disrepair 2023-11-08 14:01:28 +01:00
common (loader) Don't truncate the entire links table on load 2023-11-16 10:30:12 +01:00
features-convert (test) Don't fail test if atags.parquet is not in ~vlofgren 2023-11-15 09:11:38 +01:00
features-crawl (build) Move unit test configuration to root build.gradle 2023-10-04 12:46:22 +02:00
features-index (result-ranking) Nudge up results with ngram matches a tiny bit 2023-11-06 13:14:22 +01:00
features-qs (refactor) Remove features-search and update documentation 2023-10-09 15:12:30 +02:00
features-search (refactor) Remove features-search and update documentation 2023-10-09 15:12:30 +02:00
libraries (docs) Update documentation 2023-10-27 12:45:39 +02:00
process-models (converter) More robust filename resolution 2023-10-20 14:16:03 +02:00
processes (loader) Don't truncate the entire links table on load 2023-11-16 10:30:12 +01:00
services-application (explore2) Add robots.txt 2023-11-14 09:15:32 +01:00
services-core (index) Fix broken metrics 2023-11-11 12:53:47 +01:00
tools Initial Commit Anchor Tags 2023-11-04 14:24:17 +01:00
readme.md (docs) Update documentation 2023-10-27 12:45:39 +02:00

Code

This is a pretty large and diverse project with many moving parts.

You'll find a short description in each module of what it does and how it relates to other modules. The modules each have names like "library" or "process" or "feature". These have specific meanings. See doc/module-taxonomy.md.

Overview

A map of the most important components and how they relate can be found below.

image

Services

Processes

Processes are batch jobs that deal with data retrieval, processing and loading.

Tools

Features

Features are relatively stand-alone components that serve some part of the domain. They aren't domain-independent, but isolated.

Libraries and primitives

Libraries are stand-alone code that is independent of the domain logic.

  • common elements for creating a service, a client etc.
  • libraries containing non-search specific code.
    • array - large memory mapped area library
    • btree - static btree library