cardinal

Graph index

The index of record links Eden keeps, what questions it answers, and how to read its status.

Eden keeps an index of which record links to which, and of submitted invoice lines. Eve uses it to answer questions about how records connect, and to total sales and purchases fast. Nobody reads the index directly, and it gives no one extra rights.

Questions it answers

AskEve's toolAnswer
"What is linked to SO-0031?"record_profileThe records linking to and from it, grouped by RecType, the document flow first
"How is SINV-0042 connected to PO-0017?"explain_connectionThe shortest chain of links between the two, up to four steps
"Top customers by sales this year"erp_totalsSales or purchase totals by party, item, month, quarter or year
"Pipeline by owner" (with CRM)crm_pipelineOpen, won or lost deal value by owner, stage or month

Every record in an answer is checked as you. A record you cannot read does not appear, even if the index knows the link.

erp_totals and crm_pipeline read the index only when you can read every invoice or deal and the fields they sum, and the index is Ready. Anyone else gets a live query over the records they can read, so the totals match what they see in the desk.

Status

Eden Settings shows Index Status and Indexed At in the Graph index section.

The first save of Eden Settings with Enabled on starts the build. Status reads Building.

Background jobs index every record, 100 per job. Status turns Ready when they finish.

From then on, each save updates that record's links in the same transaction.

A site that had Eden before the index existed gets the build from cardinal migrate.

If indexing one record fails, the save still goes through and a background job rebuilds that record's links. Renaming a record queues a job for the records that named the old name.

What is left out

Links to RecTypes that nearly every record names are not indexed: Currency, Company, Item Group, Warehouse and ERP's ledgers. With CRM installed, CRM's masters (statuses, sources, industries, territories, lost reasons, SLAs) and CRM Notification are left out too.

The index costs little on writes. On 1,000 five-line invoices it added 6% to each insert and submit.

On this page