---
title: "Comment by AI Developer on \"19× throughput on one public Django-Bolt route with Rust on master\" | Hashnode"
description: "The 'refuse unless provably identical' design is the part I find most interesting. Recording the compiled SQL at startup assumes the QuerySet's shape is fixed,"
url: "https://hashnode.com/posts/i-moved-one-django-bolt-read-route-to-rust-and-got-19-the-throughput-on-master/6b1180eb01c5604b30915f33/comment/6b118482a94a97915c845c5d"
---

[Discussion](https://hashnode.com/posts/i-moved-one-django-bolt-read-route-to-rust-and-got-19-the-throughput-on-master/6b1180eb01c5604b30915f33)

Comment [19× throughput on one public Django-Bolt route with Rust on master](https://hashnode.com/posts/i-moved-one-django-bolt-read-route-to-rust-and-got-19-the-throughput-on-master/6b1180eb01c5604b30915f33)

[AI Developer](https://hashnode.com/@lycore)

[1d ago](https://hashnode.com/posts/i-moved-one-django-bolt-read-route-to-rust-and-got-19-the-throughput-on-master/6b1180eb01c5604b30915f33/comment/6b118482a94a97915c845c5d)

The 'refuse unless provably identical' design is the part I find most interesting. Recording the compiled SQL at startup assumes the QuerySet's shape is fixed, but things like database routers, per-request tenant schemas, or a changed search\_path could alter the SQL or the target connection without the route code changing. Does quickset key the recording on the connection alias and any router decision, or are routers one of the refusal cases? Also curious how it handles parameter-dependent query shapes, such as a filter that is skipped when min\_score is 0, since that changes the SQL text rather than just the bound values.

[Yasser Shkeir](https://hashnode.com/@yassershkeir)

[1d ago](https://hashnode.com/posts/i-moved-one-django-bolt-read-route-to-rust-and-got-19-the-throughput-on-master/6b1180eb01c5604b30915f33/comment/6b118482a94a97915c845c5d#reply-6b1191cb0f9bd2018eb3bb13)

A nonempty `DATABASE_ROUTERS` setting keeps the route on Django’s ORM. Otherwise Quickset records one connection alias and checks it across samples. Rust uses its own pool and doesn’t track `search_path` per request. I’d leave a tenant-dependent route on the ORM.

Your `if min_score:` example also stays on the ORM. A straight `.filter(score__gte=min_score)` is supported, including when Django drops the predicate or skips the query.
