Comments (10)
@ceelias @tobiemh , I have made the changes like the following, Please let me know if it is correct or any other changes needed.
from surrealdb.
@meetwithyash are you working on this? If not I'd like to pick this one up
That would be awesome @ceelias!
from surrealdb.
@tobiemh , Okay I will update it and raise a pull request!
from surrealdb.
@tobiemh , I am looking to contribute, Can I work on this one?
from surrealdb.
Hey @meetwithyash sorry I missed your comment! Absolutely - any contributions would be amazing 😀👍🚀 !
from surrealdb.
@meetwithyash are you working on this? If not I'd like to pick this one up
from surrealdb.
Awesome @meetwithyash! I know I originally mentioned buffer_unordered
but I think it's probably better if we use buffered
here, to ensure that the results are returned in the same order that they are retrieved (but still fetched concurrently).
from surrealdb.
@tobiemh , Please check the above pull request #1346 , and please let me know if anything else needed to be updated.
from surrealdb.
@meetwithyash Looks like you are working on this, ill look for something else to pick up.
I did look at your change though and I think there are some other changes are needed.
You will need to remove the import for try_join_all
as suggested in the github action warning in addition to importing buffered()
I think the right import is:
use futures::stream::{StreamExt};
Also, buffered()
is creating a stream/list of futures so I think you will need to collect()
them in order for them to be awaited.
I'm pretty new to Rust though so take my advice with a grain of salt 😄
from surrealdb.
After modifying as @ceelias described.
Changes:
// try_join_all(futs).await.map(Into::into)
futures::stream::iter(futs)
.buffered(10)
.try_collect::<Vec<_>>()
.await.map(Into::into)
I'm getting this error from async_recursion
.
higher-ranked lifetime error
could not prove `for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9, 't10> Pin<Box<impl for<'r, 's, 't0, 't1, 't2, 't3, 't4, 't5, 't6, 't7, 't8, 't9> futures::Future<Output = Result<sql::value::value::Value, err::Error>>>>: CoerceUnsized<Pin<Box<(dyn futures::Future<Output = Result<sql::value::value::Value, err::Error>> + std::marker::Send + 't10)>>>`rustc`
If anyone can help or point me to right direction that will be great.
from surrealdb.
Related Issues (20)
- Bug: LIVE QUERIES on NIGHLY responds with inconsisten datatypes. HOT 3
- Bug: cargo panic on launching the docker image (affects all images using chainguard base image) HOT 1
- Bug: Surreal SQL -e command is missing from installation? Cannot complete installation tutorial? HOT 1
- Feature: Record Links between Databases HOT 1
- Bug: Parsing after `FETCH` statement variables HOT 6
- Feature: Basic `object::` functions
- Bug: using UUIDs as object keys doesn't work for accessing the object
- Feature: Ability to parse compressed maps
- Feature: Query completion before EVENT trigger HOT 2
- Bug: `SELECT * FROM <number> true` has stopped working
- Bug: nonFLEXIBLE array of FLEXIBLE anys deletes the written data that's about to be created HOT 2
- Feature: Live query support in Rust SDK HOT 3
- Bug: `type::field` ignores aliases
- Bug: Challenges with Updating Relationship Fields in SurrealDB
- Bug: show statement can not work and rule is wrong
- Bug: Delimiters inside string being parsed
- Bug: If `Update` statement creates a record it doesn't cascade the permissions
- Feature: add SQL `between` operator HOT 1
- Bug: Connect WS stalls for 5s in WASM Chrome HOT 16
- Bug: fuzzy matching not working on strings
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.