"Do these two tables match?" sounds like one question. In practice it is four, and they cost different amounts to answer. Every recon job in InsightReconcile has a recon type that picks one strategy. This article explains what each strategy computes, taken from how the engine works, so you can pick the right one, or run more than one on the same data.
Row count
The engine fetches both sides and compares the number of rows. One result: matched or mismatched, with the difference. It cannot tell you which rows are missing, but it is cheap and catches the most common failure of a nightly load: a partial or duplicated batch. Use it as the first check after every load.
Field-level
This is the detailed comparison. The job's column mapping lists pairs of source and target columns; the pairs marked as key are used to join the two sides with an outer join. For every key the engine reports one of:
- Matched: present on both sides and every mapped field agrees.
- Mismatched: present on both sides, but one or more fields differ. Each difference is recorded with the field, the source value, the target value and the difference.
- Missing in target or missing in source: the key exists on one side only.

Numbers are compared with the job's tolerance: absolute (the values may differ by up to the tolerance value, for example 0.01 for rounding) or percentage (the difference, as a percentage of the larger of the two values, may be up to the tolerance). Text is compared as text. Without key columns the engine compares row by row in the order the queries return, which only makes sense if both queries sort the same way, so always mark a key.
SELECT amount_usd AS amount …) and map amount to amount, as the example job here does. Same-named pairs keep the mapping simple and the diff easy to read.Aggregate
Sometimes you do not need every row to match; you need the totals to tie out. An aggregate job maps a column on each side to a function:
SUM, COUNT, AVG, MIN or MAX. The engine computes each function on both sides
and compares the results with the same tolerance rules. You get one result per mapping, such as SUM(amount) and
COUNT(payment_id).
Aggregates are a good control for cash: a payments table where every row is a receipt should total the same on both sides. A difference tells you there is a problem, not which payment, so pair it with a field-level job when you need to find it.
Hash
A hash job builds a fingerprint for each row from its mapped columns and compares the sets of fingerprints. Rows whose fingerprint appears on both sides are matched; a fingerprint found only on one side is reported as missing on the other. Hashing is quick for wide tables because it compares one value per row. The trade-off is that a changed row appears twice, once missing in the target (its old fingerprint) and once missing in the source (its new one), and the result does not say which field changed. Use it to detect change, then field-level to explain it.
That is the behaviour when no column is marked as a key. If you do mark key pairs on a hash job, the engine fingerprints the non-key columns, lines rows up by key, and reports a changed row once, as mismatched with a hash difference, instead of twice. It still does not say which field changed. Marking a key is usually the better choice, because the counts then mean what they say. If no non-key columns are mapped, every column except the key goes into the fingerprint.
| Question | Strategy |
|---|---|
| Did the whole batch arrive? | Row count |
| Which records differ, and in which field? | Field-level |
| Do the totals tie out? | Aggregate |
| Has anything changed since the last copy, quickly? | Hash |
How values are compared
The same comparison rules apply to field-level fields and to aggregate results, and they are worth knowing before you set a tolerance:
- Empty on both sides is a match; empty on one side only is a difference.
- Anything that reads as a number is compared as a number, so
120and120.00match. The tolerance applies here: absolute allows a difference up to the value, percentage allows a difference up to that share of the larger of the two values. With no tolerance, or a tolerance of zero, numbers must be equal. - Everything else is compared as text after trimming spaces at either end. Case matters:
PaidandPAIDdiffer. Normalise case in the query if it should not. - Dates are compared as their text. Cast both sides to the same format, or to a date without time, in the query.
A worked example of the two tolerance types, with made-up amounts: with an absolute tolerance of 0.01, 100.00 against 100.01 matches and 100.00 against 100.02 does not. With a percentage tolerance of 1, 1,000 against 990 matches (a difference of 10 is 1% of 1,000) and 1,000 against 985 does not.
Combining them
On the demo database the made-up Brightwater Supply Co. runs all four between its billing system and its finance warehouse:
- The row count job reports 48 rows in billing against 47 in the warehouse.
- The aggregate job shows the payment total and the payment count both differ: one receipt did not land.
- The hash job lists the rows that exist only on one side.
- The field-level job names them: two invoices missing in the warehouse, two with a different amount and one whose status is different, while a one-cent rounding difference passes inside the 0.01 tolerance.
Each job is cheap to define, and together they move the conversation from "the numbers don't match" to "these five invoices, for these reasons". The month-end example follows that through to the exceptions.
Frequently asked questions
Which one should run first?
Row count, because it is the cheapest and needs no mapping. If it fails, there is no point reading a field-level result until the load is re-run.
Is a hash job faster than field-level?
Both read the full query result from each side into memory, so the cost of fetching is the same. Hashing saves the work of comparing and storing every field, and gives a shorter, less detailed result.
Can one job use two strategies?
No. A job has one recon type. Create one job per strategy on the same connections and queries; templates and cloning make that quick.