● Travel Never Stops. Neither Do We. 365 Days a Year.

Hiring .NET Developers for Stable Query Pagination

Assess .NET developers on pagination that stays understandable as records change between requests.

Two backend engineers arrange reservation record cards in rows.

Travel booking interfaces rarely display a frozen list. Reservations arrive, cancellations remove eligible records, and agents change filters while another colleague is still browsing. A pagination feature can appear correct in a quiet demonstration yet repeat or omit reservations under ordinary traffic. For a travel platform evaluating candidates, hiring dot net developers means checking whether they can explain these transitions, express them clearly in EF Core, and prove their performance against the actual database rather than relying on a convenient sample dataset.

This guide describes a practical evaluation standard for reservation search, agency work queues, and operations screens. Its emphasis is query navigation under change: a separate engineering concern from hosted background jobs, scheduled processing, or modernization of older applications. The central question is not simply whether an engineer knows Skip and Take. It is whether the interface still behaves predictably after the first page was retrieved.

Why a Moving Reservation List Needs a Pagination Contract

Pagination divides a result set into manageable responses. Each request, however, is a new observation unless the system deliberately provides stronger consistency. Between those observations, another user may insert a reservation, cancel one, update its status, or modify a field used to sort it. The browser retains an impression of continuity; the database does not automatically preserve the earlier page boundary.

A useful hiring conversation begins with product behavior. Should an agent move forward to the next available reservations, revisit the previous window, jump directly to page twenty, or export an auditable list as it existed at a particular time? These are different requirements. They should not be bundled into a vague request for "fast pagination."

Define What Stable Actually Means

For an interactive list, stability usually means deterministic ordering, explicit continuation boundaries, and well-documented treatment of intervening changes. It does not necessarily mean every page belongs to a historical snapshot. For financial reconciliation, audit reporting, or a repeatable export, a snapshot or another appropriately consistent retrieval design may be necessary. Keyset pagination alone does not supply that guarantee.

Ask a candidate to describe the observable contract in plain language. A reasonable version is: "Continue after the last row previously shown, using the same filters and order, and return currently eligible rows." That formulation makes both its value and its limitations visible to product managers, testers, and support teams.

Include the client experience in that contract. Should the screen preserve selected rows when the agent travels backward? Does a refresh clear its navigation history? Will a status badge change in place while the list order remains unchanged until refresh? These choices are not solved by the database predicate. They should be decided with the product team and reflected in API names, empty-state messages, and automated tests. Otherwise, two individually correct requests can still create an interface that users perceive as inconsistent.

Make Ordering Unique Before Discussing Performance

Every page must use an order that uniquely positions eligible records. Sorting by reservation date alone is unsafe if several bookings share the same timestamp. Their relative positions may differ across requests, creating duplicates or gaps even without obvious changes to the list. SQL result ordering is not implied by a primary key when the query has no explicit order.

For a fictional reservations table, use CreatedAtUtc followed by the unique ReservationId. The ID breaks ties, so the pair defines a total order. A candidate should be able to explain why the second column is not decorative and why both comparisons must appear in the continuation predicate.

Sort Keys Must Match the Business Promise

Creation time is often a useful immutable navigation key, but an interface labeled "upcoming departures" would need a departure-based ordering and its own tie-breaker. Avoid quietly substituting a convenient database column for the field the user thinks controls the list. Similarly, if agents can change the selected sort, old cursors must not remain valid under the new order.

Be precise about null values, timestamp precision, timezone normalization, and collation whenever the selected columns allow ambiguity. A nullable date demands an explicit null-order policy; a displayed local date should not be confused with its stored comparison value. If an ordering field can change, an existing row can move across a cursor boundary, and keyset navigation may then omit or repeat that row across requests. Prefer stable keys for continuous browsing or document the resulting behavior.

Contrast Offset and Keyset Navigation Without Overselling Either

Offset pagination asks the database to skip an ordinal number of qualifying rows. EF Core commonly expresses it with Skip(n).Take(size). It is straightforward for numbered pages, but rows inserted or deleted before the requested offset shift later positions. A deletion near the beginning can cause the next page to miss a row that moved into the skipped range; an insertion can cause a previously viewed row to reappear.

Large offsets may also require the database to work through many preceding rows even though the application never receives them. The precise cost depends on the execution plan, indexes, data distribution, provider, and workload. No useful reviewer should assume that the shape of a LINQ expression is proof of its runtime characteristics.

Keyset, also called seek pagination, keeps the values of a boundary row and asks for rows after or before that boundary. Microsoft's EF Core pagination guidance recommends it for sequential navigation, stresses fully unique ordering, and describes the trade-off with random page access. The important distinction is positional: a cursor names a place in the ordering rather than a count of rows to discard.

Choose Navigation Based on Actual User Actions

Next and previous controls work naturally with keyset navigation. Jumping to an arbitrary page number does not, because a cursor does not identify the thousandth row without traversing or separately locating boundaries. Where numbered navigation is genuinely required, teams may combine keyset for adjacent movement with offset for jumps, clearly exposing that different guarantees apply.

Before introducing complex solutions, ask whether users truly need page 47. Operations teams often need fast, reliable next-page browsing, strong filters, and direct reservation search rather than an enormous numbered pager. Product research should determine the control, not a developer's preferred library.

A Worked Hypothetical Reservation Journey

Consider an illustrative, fictional reservation list ordered ascending by CreatedAtUtc and then ReservationId, with three rows per page. All six initial rows match the same agency and status filters. Their ordering keys are 10:00/101, 10:00/104, 10:01/102, 10:03/109, 10:03/110, and 10:05/115 on one UTC date. These are deliberately small invented values, not production measurements or customer data.

The first request returns 10:00/101, 10:00/104, and 10:01/102. The continuation cursor carries the last pair, 10:01/102. That pair matters: using time alone could accidentally lose other reservations with an identical timestamp; using ID alone would ignore the primary date ordering.

Before the agent clicks Next, another worker inserts 10:00/120 and 10:04/111. The first insertion falls before the saved boundary, while the second falls after it. A cancellation then removes 10:03/109 from this filtered list. The next keyset request asks for eligible rows strictly greater than 10:01/102. It therefore returns 10:03/110, 10:04/111, and 10:05/115.

Notice the meaning of that result. The inserted 10:00/120 is not retroactively introduced into a page already viewed. The newly qualifying 10:04/111 may appear because it lies after the boundary. The removed 10:03/109 is absent. No claim is made that the user is viewing the original six-row snapshot; they are traversing current matches from a remembered position.

If the user later presses Previous from the second page, the system seeks rows strictly before that page's first key, orders them descending to obtain the nearest earlier neighbors, and reverses them for display. Because 10:00/120 now exists, that previous window may differ from the first page the user originally saw. This is coherent live-list behavior, not a bug hidden by a cursor.

This example also exposes a useful interview trap: an engineer might expect a cursor to freeze membership because it feels like a bookmark. It does not. Have the candidate draw the ordered keys before and after each mutation, then identify exactly which records satisfy the strict boundary comparison. Repeating the exercise with two rows sharing 10:03 tests whether the ID tie-breaker is genuinely understood. Repeating it after a status change tests whether the engineer remembers that only qualifying rows belong to the next result.

Express the Continuation Logic Clearly in EF Core

The strongest implementation is easy to audit. The example below assumes non-null UTC creation timestamps, unique numeric IDs, ascending order, a previously validated cursor, and a single stable filter applied before pagination. It is an illustrative query shape, not a provider-specific performance claim. The application should derive cursorDate and cursorId from a validated server-issued token, never from arbitrary untrusted predicates.

var page = await db.Reservations
    .AsNoTracking()
    .Where(r => r.AgencyId == agencyId && r.Status == status)
    .Where(r => r.CreatedAtUtc > cursorDate ||
        (r.CreatedAtUtc == cursorDate && r.ReservationId > cursorId))
    .OrderBy(r => r.CreatedAtUtc)
    .ThenBy(r => r.ReservationId)
    .Take(pageSize + 1)
    .Select(r => new { r.ReservationId, r.CreatedAtUtc, r.Status })
    .ToListAsync(cancellationToken);

The pageSize + 1 pattern lets the server determine whether another eligible row existed in this particular result at query time. It should trim the extra row before responding and build the next cursor from the last displayed row, not from the unseen look-ahead row. The extra record is an observation, not a promise that the following request will still contain results.

On the initial request, omit the cursor comparison entirely while retaining the same filters and unique ordering. For an empty result, do not manufacture a boundary from default dates or zero IDs. Return no rows and a clearly defined absence of continuation. For a nonempty result, publish a cursor only for a direction the endpoint actually supports. These details prevent first-page and terminal-page special cases from accidentally using different query rules than ordinary navigation.

Make Backward Navigation Symmetrical

For Previous, compare against the first displayed row: date less than the anchor date, or equal date with ID less than the anchor ID. Order by date descending and ID descending, take the requested window plus any look-ahead, then reverse the displayed rows to restore ascending presentation. Merely negating one comparator, or leaving the direction of ThenBy unchanged, can select the wrong neighbors when dates tie.

Apply filters before both the seek predicate and the final limit. Enforce a server-side maximum page size, project only fields needed by the screen, and use asynchronous cancellation for requests that a user abandons. AsNoTracking can be appropriate for read-only listings; it is not a substitute for choosing the correct boundary or validating access rights.

The exact SQL translation must be inspected rather than assumed. EF Core documentation shows the expanded OR-and-AND predicate for multiple keys and notes that LINQ does not currently express tuple comparison in its standard form. Developers should consult the documentation for the EF Core version in use rather than asserting that every database/provider will generate or optimize an identical row-value comparison.

Bind Each Cursor to Its Filtering and Ordering Context

A cursor is more than a serialized timestamp. It is a continuation instruction whose interpretation depends on the query that produced it. If an agent changes agency, destination, reservation status, date range, search text, or sorting direction, continuing with an old boundary can return surprising results. The application should start a new traversal, not reuse an unrelated cursor.

Specify and Validate a Small Cursor Envelope

A practical opaque token can represent a schema version, date and ID boundary, traversal direction, canonical filter fingerprint, sort definition, and optionally page size and expiration. Encode it for transport and protect it against tampering, for example with authenticated signing; encoding by itself is not a security control. Decide whether to bind a cursor to the requesting tenant and permission context. On every request, independently reapply authorization and server-owned filters.

Canonicalization matters. Two logically identical filters should produce the same normalized identity even if a client changes parameter order or whitespace. Conversely, a meaningful change to a status set or date range should invalidate the cursor and return a clear restart response. The cursor must not allow a user to bypass agency scoping, disclose sensitive field values, or silently select an older query contract after a deployment.

Consider lifecycle rules as well. Expired, malformed, tampered, or unsupported-version cursors should yield documented errors with an instruction to restart at the first page. They should not be treated as a request for unrestricted results. Testing these failures is an important part of evaluating someone who claims experience building secure travel APIs.

Handle Empty Pages and Concurrent Changes Explicitly

An empty page can mean the user reached the end, matching records were removed, an old cursor points beyond the current eligible range, or filters now exclude later rows. Treat it as a valid state, not a signal to silently change ordering, reset to page one, or issue an unbounded fallback query. The response should explain that no further rows currently match after the saved boundary.

A look-ahead row gives a useful has next signal only for the request in which it was read. If that row is deleted immediately afterward, a subsequent click can yield an empty response. UI copy such as "No more matching reservations" is safer than promising an immutable page count. A refresh action may restart the live traversal with the latest matches.

Concurrent inserts are similarly directional. Records inserted before an ascending boundary will generally not appear on later forward pages; records inserted after it may. Deletions after the boundary shrink future windows. Deleting the anchor row itself need not prevent continuation because the cursor stores its ordering values. Updating a sort key is more complex: the record may cross a boundary and reappear or be missed. Explicitly test that case or avoid mutable sort fields for continuous browsing.

Do not infer repeatable-read semantics from keyset mechanics. If the product needs an exact historical population, investigate a separately designed consistent snapshot, export materialization, or versioned query contract with carefully evaluated retention and isolation costs. A cursor over live data cannot reconstruct rows that have vanished or guarantee that every record existed at the first request.

Inspect Indexes, Generated SQL, and Measured Behavior

An efficient seek predicate still needs appropriate physical access. For the fictional order, investigate a composite index aligned with CreatedAtUtc and ReservationId, while accounting for the mandatory agency and status predicates. A useful candidate explains why filter selectivity, column order, index width, update costs, and other queries affect the final choice. "Add an index to the ID" is not a complete answer when date is the leading order key.

Microsoft's pagination documentation specifically highlights indexes that correspond to pagination ordering, including composite indexes for multiple keys. That principle is portable; the ideal physical definition and observed access path are not. Those must be confirmed using the project's chosen relational database, EF Core release, and provider.

Require Evidence from the Supported Project Stack

Ask for the exact application runtime, EF Core version, provider package and version, database engine and version, index definition, representative row counts, and query parameters. Capture generated SQL with a supported logging or inspection path, then inspect the database's actual execution plan and measured timings using that engine's tooling. Compare first-page, deep-page, tied-timestamp, highly filtered, and sparse-result cases under realistic data distributions.

Look beyond one attractive millisecond number. Record row counts, examined or read work where the engine exposes it, whether sort operators appear, how the chosen index is accessed, and what changes between cold and warmed runs. Include concurrency tests with inserts, deletes, and mutable sort keys. Query compilation, network latency, serialization, and rendering can obscure database time, so measure the relevant layers separately.

Here is a compact assessment table. Its scope is an interactive, changing reservation list with a unique date-plus-ID order; it does not describe snapshot exports or guarantee a particular database plan.

Pagination choices for live reservation browsing; behavior depends on ordering, filters, and concurrent changes.
Concern Offset approach Keyset approach
Continuation Skip a counted number of rows. Seek after or before saved ordering values.
Concurrent inserts or deletes Earlier changes can shift positions and repeat or skip rows. Earlier changes do not shift the saved boundary; later matches can change.
Navigation Supports numbered jumps, subject to changing positions. Natural for next and previous; not direct random jumps.
Performance evidence Measure work at increasing skipped depths. Measure predicate, composite index access, and tie handling.
An engineer compares printed query plans beside index cards and a keyboard.

Do not mistake an explain-plan screenshot for completed validation. Plans can differ with cardinality, statistics, parameter values, deployment settings, and database versions. A hiring review should reward an engineer who states the tested environment, recognizes an unverified assumption, and proposes a repeatable measurement rather than claiming universal provider behavior.

Turn the Design into a Practical Developer Assessment

Give candidates a small, fictional reservation API and ask for next-page and previous-page navigation over a filtered list. Specify multiple records sharing the same timestamp, a concurrent insert before the cursor, an insert after it, a deletion between calls, and a change in status filter. Ask for a response contract containing rows, bounded page size, continuation tokens, and a documented end-of-list state.

Review Explanations Alongside the Tests

Strong submissions demonstrate the total order, strict greater-than and less-than predicates, descending retrieval for previous navigation, and filter-bound token validation. They test empty results, invalid cursors, tenants with overlapping IDs, and updates to a sort field. They explain which behavior is guaranteed by the query and which would need a snapshot. A test that merely checks the first ten records of an unchanged fixture is insufficient.

Probe how the candidate would observe the generated SQL and compare index choices on the actual supported provider. Ask why a proposed optimization should work, what evidence could refute it, and what happens when the UI requests an arbitrary page number. A good answer may reject unnecessary numbered jumps while offering a separate, explicitly weaker random-access path if the product requires one.

Assess communication as much as syntax. Can the engineer tell a travel operations lead why a newly inserted reservation appears on a later page but not an earlier one? Can they describe a refresh policy without promising impossible historical continuity? Clear limitations, thoughtful test cases, and documented contracts are signs of maintainable engineering, not hesitation.

What a Durable TravelTech365 Implementation Should Hand Over

A completed pagination feature should include its API contract, cursor versioning policy, authorization and filter rules, explicit ordering definition, forward and backward query tests, index migration, and recorded SQL-plan evidence for the selected stack. User-interface behavior for empty pages, refreshed filters, and expired tokens should be just as intentional as the LINQ query. Reviewers should also establish who owns this contract when new filter and sorting options are introduced after release.

When hiring dot net developers for a travel booking product, use this bundle as the acceptance standard. Seek people who can connect product behavior, EF Core expression semantics, live-data concurrency, and measured database performance. That combination helps reservation screens remain understandable as the underlying records change, while keeping the difference between reliable continuation and an actual historical snapshot visible to everyone relying on the system.