Comments (2)
Thanks for the report. e.op
is particularly susceptible to type performance issues and 5.4 recently made things worse. I've done a bunch of work to mitigate it for some things, but e.op
continues to be right on the edge. like
is especially expensive due to how the overloads work since it's at the end of the list of overloads for e.op
😮💨
I'll keep this open while we continue to work on improving this incrementally, and we have some larger refactors coming soon that will hopefully make a much more meaningful impact on type performance.
One specific suggestion for your case:
I would consider using a mix of the queries
generator for static queries like this with the query builder for more dynamic queries. The types for the queries generator are totally flat and have optimal performance compared to the more complex types in the query builder.
with
prefix := <str>$prefix,
year := <str>$year,
search_term := prefix ++ year ++ "-%",
select WorkingDocument { no }
filter .no like search_term;
from edgedb-js.
Thanks for your reponse and your incredible work on EdgeDB Typescript client! It's great to hear about the upcoming improvements and refactors. Using the queries generator for static queries and the query builder for dynamic ones will work fine for now :)
Thanks again!
from edgedb-js.
Related Issues (20)
- Add support for the `ext::ai` embeddings API
- `unknown` args generation is overly broad for required arguments HOT 7
- [generate] issues with prompting about .gitignore HOT 2
- Support changing Session within a Transaction HOT 3
- In auth helper libraries, cookies have a session expiration time instead of living as long as the token itself
- Can't get to UI signup HOT 2
- Uncaught ReferenceError: Buffer is not defined in Partykit (Cloudflare Worker) HOT 4
- expose codecs for custom datatypes HOT 1
- Refactor EdgeDBError.source to standard cause
- Unable to adopt example of complex with usage from docs HOT 2
- Is there a way of generating nanoids through the ESDL file? HOT 2
- Can't import e from ".../edgeql-js
- Improve the type inference performance of `e.op` HOT 2
- Remix/Vite/EdgeDB: When using edgeql-js with tsx, imported modules are not resolved correctly. HOT 2
- Empty `e.params` generate an invalid query HOT 1
- Cannot use `ext::ai::search` from the query builder
- TypeScript compilation errors if `noUnusedLocals`, `noUnusedParameters`, or `exactOptionalPropertyTypes` are enabled
- `@edgedb/generate` scripts not executing properly with `bun` version 1.1.10
- Incorrect syntax generated for property off of select that actually queries correctly HOT 1
- Shape with pointer of `false` produces type suggesting the pointer is returned HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edgedb-js.