mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
12 lines
605 B
XML
12 lines
605 B
XML
<test>
|
|
<!-- Performance of the prime-generation sources behind `primes()` / `system.primes`
|
|
(see `SourceFromPrimes.h`). Each query drives a different source. -->
|
|
|
|
<!-- `PrimesSource`: prime-index domain. `primes(N)` generates the first N primes. -->
|
|
<query>SELECT sum(prime) FROM primes(20_000_000)</query>
|
|
|
|
<!-- `PrimesSimpleRangedSource`: value-range domain. A `WHERE` bound on the unbounded
|
|
`system.primes` is pushed into generation, sieving every prime below the bound. -->
|
|
<query>SELECT sum(prime) FROM system.primes WHERE prime < 300_000_000</query>
|
|
</test>
|