Comments (1)
Thanks for this @finnbear!
So at a quick glance, idea 1 would be the way we would want to go.
We already have (not yet documented) things called models. These are designed purely for testing (generating a large amount of records in a simple query), but make use of a range operator in the query parser...
CREATE |person:1000|; -- Create 1000 randomly generated people records
CREATE |person:1..1000|; -- Create 1000 people records with IDs from 1 to 1000
Just to summarise, we shouldn't go with ideas 2 or 3 because:
- the range query is generated from the
FROM
clause and not from theWHERE
clause - we would have to ensure the user creates indexes for the id field (which isn't and shouldn't be necessary)
- I prefer the syntax of idea 1, as it fits more inline with the current SurrealQL concepts
from surrealdb.
Related Issues (20)
- Feature: Limit outgoing connections to certain hosts by Root, NS and DB HOT 3
- Bug: Edge inserted via INSERT cannot be queried with -> HOT 2
- Bug: (Rust Driver) Serializing trait objects using `typetag` crate fails HOT 2
- Bug: non-conforming fields are silently deleted
- Feature: Add more functions for supporting semver strings HOT 1
- Feature: Raise an error when query parameters are missing HOT 1
- Bug: Live query inconsistent behaviour HOT 3
- Feature: Searching through array of string or object
- Feature: Is there a feature to unnest array into rows ?
- Feature: Custom tokenizer and custom filter using function HOT 2
- Bug: multi-column unique index not ignoring 'NONE` values
- Feature: Vue-like reactivity: computed properties HOT 1
- Bug: SELECTing from relations returns only 1 record HOT 2
- Feature: Query nested field just like json_path_query in Postgres HOT 3
- Bug: Unexpected behaviour of serialization/deserialization for IpAddr object. HOT 3
- Bug: MacOS brew upgrade surrealdb doesn't upgrade to 1.0.2 or 1.1.0
- Bug: Cannot Perform Nested Array Multiplication in UPDATE Query HOT 2
- Bug: issue with Records links / Record IDs with quotation marks (Rust) HOT 2
- Bug: Scripting functions cast large integers into 32 bit
- Following edges depends on how the source specified 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 surrealdb.