-
-
Notifications
You must be signed in to change notification settings - Fork 267
Conversation
👍 |
1 similar comment
👍 |
the blocker for removing writestream was replacing the functional tests that involved fstream, it seems that both myself and @jcrugzz have been a little too busy to clean this out, but there's a starting point here if you want to pick up the effort: https://github.com/Level/level-fstream Alternatives are: just ignore the functional tests for now and make a TODO issue to get it done in the future (risky), or don't remove writestream at all and do it later instead (also risky, it'd be nice to wean people off a bundled writestream IMO). Thoughts? |
Will writestream be part of the level package? Can we bless a writestream impl and put it inside devDependencies? |
open for discussion, I don't think we resolved this, I'd like to hear from writestream implementers on their opinions though--the current state of things suggests that it's difficult to come up with a single implementation that is generically good and that their performance is heavily usage dependent |
this might be old news, but what if we have the simplest implementation in levelup but advice to use others for heavier needs? |
I really think we should put the simplest writestream imp in devDependencies, something like https://www.npmjs.org/package/level-write-stream, and use that for tests. |
something like |
Hey! Let's get this discussion going again.
I say that we take this and release it as levelup 1.0 - keeping write-stream for now. TBH I don't see the harm in, as @juliangruber suggested, keeping a simple write-stream in core. I remember that we agreed to remove write-stream, but I don't really remember why :) |
Yep, given the stall, I'm good with just getting something out, so let's bail on writestream removal. @kesla we just need to get the functional tests passing some form for me to be 👍 on this. |
Being the one who removed the Either way I have rebased my |
@jcrugzz no idea sorry, removing writestream is still a worthy goal and we reached an acceptable level of consensus to make it happen, it's just holding us back so let's go with an easier 1.0 and aim for a 2.0 that removes writestream. Sound good? |
@rvagg yea I have no qualms about it. |
How about moving the current writestream to a separate module, so it can be
|
Per bug report, example crafted from test.
Thanks for the feedback, @rvagg. Based on your feedback and some double checking via https://github.com/rvagg/node-leveldown/blob/5d552d750170bedd0656d2e6d82673556fa0ea0d/deps/leveldb/leveldb-1.17.0/db/db_impl.cc#L1437-L1441 I've gone with a comment similar to the preceding stanza. Also removed the curly braces.
Ok, so now four more months has passed. Lets give this a try again :) I think we all want to get Releasing Once |
what if we really just leave the simplest api compatible version of a writeStream in core, so it still works but people who require faster performance are advised to use another module. something like this: db.prototype.createWriteStream = function(){
var self = this;
var w = Writable();
w._write = function(kv, _, done){
var method = kv.type || 'put';
db.put(kv.key, kv.value, done);
}
return w;
} |
sgtm, we should probably do something while we're releasing |
@jcrugzz 👍 I'm rebasing your branch onto https://github.com/rvagg/node-levelup/tree/remove-ws |
no level-ws tests for me, and leave ws to the community. We need a good
|
@jcrugzz Mind adding some some to this section? There are a few typos (Disclaimper) and a todo comment. |
fwiw I'm onsite with a client this week (and last) but plan on dedicating next week to some of my open source backlog and this is near the top of my list, unfortunately I can't afford the headspace to get stuck in here until then but you're welcome to hold me to getting to this next week! |
@rvagg Hopefully you'll only need to publish when you come back :) |
add links to issue page discussion the removal and also link to the wiki where more information on alternative userland write stream approaches can be found
Remove ws, update
remove write-stream
8d6c37d
to
d689bb8
Compare
I merged |
Big +1 to this PR and @ralphtheninja ! |
I'm merging now since there's so many +1s and this project desparately needs a new version |
👯 |
So 🍻 for everybody. It's St. Patrick's day too!! 👯 |
@rvagg it's your turn to publish this goodness, so we can all start updating our modules! |
BOOM! 👍 |
Not really the place to plaudits but... 🍻 👏 |
Let's get a 1.0.0 done to compliment leveldown@1.0.0
Have I missed something else we should try and get into this release?