# @comunica/mediator-join-coefficients-fixed

> A join-coefficients-fixed mediator

Latest version **5.3.0** (published 2026-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @comunica/mediator-join-coefficients-fixed
pnpm add @comunica/mediator-join-coefficients-fixed
yarn add @comunica/mediator-join-coefficients-fixed
bun add @comunica/mediator-join-coefficients-fixed
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 5.3.0 |
| Published | 2026-07-10 |
| First published | 2022-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 580 |
| Maintainers | joachimvh, rubensworks, rubenverborgh, dexagod, jeswr |
| Keywords | comunica, runner |

## Links

- npm: https://www.npmjs.com/package/@comunica/mediator-join-coefficients-fixed
- Repository: https://github.com/comunica/comunica
- Homepage: https://comunica.dev/
- Issues: https://github.com/comunica/comunica/issues
- Funding: https://opencollective.com/comunica-association
- npm.io page: https://npm.io/package/@comunica/mediator-join-coefficients-fixed

## Recent versions

- 5.3.0 (latest) — 2026-07-10
- 4.4.2-alpha.49.0 (next) — 2025-10-22
- 5.2.3 — 2026-05-26
- 5.2.2 — 2026-05-03
- 5.2.0 — 2026-04-14
- 5.1.3 — 2026-01-30
- 5.1.0 — 2026-01-16
- 5.0.3 — 2026-01-12
- 5.0.2 — 2026-01-12
- 5.0.0 — 2026-01-08
- 4.5.0 — 2025-11-18
- 4.4.1 — 2025-09-25
- 4.4.0 — 2025-09-17
- 4.2.0 — 2025-04-29
- 4.1.0 — 2025-02-11
- … 70 more at https://npm.io/package/@comunica/mediator-join-coefficients-fixed/versions

## README

# Comunica Mediator Join Coefficients Fixed

[![npm version](https://badge.fury.io/js/%40comunica%2Fmediator-join-coefficients-fixed.svg)](https://www.npmjs.com/package/@comunica/mediator-join-coefficients-fixed)

A mediator that mediates over actors implementing the [Join Coefficients mediator type](https://github.com/comunica/comunica/tree/master/packages/mediatortype-join-coefficients).
Based on the produced join coefficients,
the mediator calculates an overal join cost based on several configurable weights,
and picks the actor with the lowest overall cost.
This is meant to be used for mediation over the [RDF Join bus](https://github.com/comunica/comunica/tree/master/packages/bus-rdf-join).

For example, on machines where I/O and memory is very expensive,
this mediator's parameters could be tweaked so that the weight of I/O and memory are higher,
so that they lead to a higher cost for actors that require more I/O and memory usage.

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).

## Install

```bash
$ yarn add @comunica/mediator-join-coefficients-fixed
```

## Configure

After installing, this mediator can be instantiated as follows:
```text
{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-all/^5.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@type": "SomeActor",
      "someMediator": {
        "@id": "#mediatorRdfJoin",
        "@type": "MediatorJoinCoefficientsFixed",
        "cpuWeight": 1,
        "memoryWeight": 1,
        "timeWeight": 1,
        "ioWeight": 0.01,
        "bus": { "@id": ActorRdfJoin:_default_bus" }
      }
    }
  ]
}
```

### Config Parameters

* `"cpuWeight"`: Weight for the CPU cost. Higher values lead to higher overall costs.
* `"memoryWeight"`: Weight for the memory cost. Higher values lead to higher overall costs.
* `"timeWeight"`: Weight for the execution time cost. Higher values lead to higher overall costs.
* `"ioWeight"`: Weight for the I/O cost. Higher values lead to higher overall costs.
* `"bus"`: Identifier of the bus to mediate over.

---
_Source: https://npm.io/package/@comunica/mediator-join-coefficients-fixed · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
