NodeJS version extremely slow an resource intensive

108 views
Skip to first unread message

@atomi

unread,
Aug 29, 2015, 10:54:42 PM8/29/15
to TiddlyWiki
Why is the NodeJS version so slow for search and launching? Isn't there a way to just have the NodeJS version serve the single file tiddywiki and process saves rather than have this whole server backend in multiple files? Or is there a way to use a different backend in another language to do the saves and serve the tiddlywiki single file?

Also is when using search via url params is there a way to just open a list of tiddlers rathern than the tiddlers themselves just like the sidebar works?

RichardWilliamSmith

unread,
Aug 30, 2015, 1:56:22 AM8/30/15
to TiddlyWiki
Are you running the server locally or connecting to it over the internet? I think it's really only meant for local use, and if you find it too slow for some reason then you can just use the single file version in the regular way. Having all the tiddlers as individual single files is incredibly useful imho.

If you're trying to use it across the internet, I'm afraid I don't think it's secure and possibly not too stable (I played around running it on a digital ocean droplet (hosted VM) and connecting to it and found that the droplet fell over quite a lot and performance was generally dire).

The topic of backends for TW comes up repeatedly - there are several that exist - the simplest is called tiddlyspot and there is a mechanism built into TW for saving your single file there http://tiddlywiki.com/#Saving%20on%20TiddlySpot. There was recent discussion about revamping and open-sourcing it https://groups.google.com/forum/#!searchin/tiddlywiki/tiddlyspot%7Csort:date/tiddlywiki/sOKKpqMYx8E/q2T8UohZBwAJ

Another backend that was written is called TiddlyWeb and that still powers TiddlySpace. A developer called Chris Dent has been working on another backend called Tank.

Also, Danielo Rodríguez has been working on a couchdb adaptor, which would allow you to use a database on a remote machine as your tiddler store https://github.com/wshallum/couchadaptor - and various other methods like this using other technologies are also possible if someone writes the code.

As far as I know, there's no way to pass url strings to the search box - it puts the list of fragment (tiddler) identifiers into the story list. If you enter the names of tiddlers that don't exist (http://tiddlywiki.com/#newtiddler) it will give you a 'create tiddler' dialogue for each one. 

I wonder if Jeremy has ever considered a more sophisticated 'routes' mechanism? Probably a massive can of worms!

Regards,
Richard

Jeremy Ruston

unread,
Sep 12, 2015, 6:19:54 AM9/12/15
to TiddlyWiki, @atomi
Hi Atomi

Apologies for the delayed response.

> Why is the NodeJS version so slow for search and launching?

Can you give me an idea of your setup and which operations you're finding slow? It'd be useful to know what platform/browser you're using too.

> Isn't there a way to just have the NodeJS version serve the single file tiddywiki and process saves

That's exactly what TiddlyWiki does under Node.js; rather than processing "save" operations, though, it syncs individual tiddlers with the browser.

> rather than have this whole server backend in multiple files?

Are you talking about the multiple files making up the TW core code, or the multiple tiddler files within a server-side wiki folder?

> Or is there a way to use a different backend in another language to do the saves and serve the tiddlywiki single file?

There's a PHP backend available, listed on tw.com. Rather than syncing individual tiddlers it saves the entire file, making the server side much simpler.


> Also is when using search via url params is there a way to just open a list of tiddlers rathern than the tiddlers themselves just like the sidebar works?

Not at the moment, no.

Best wishes

Jeremy.


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e72bbcde-ebc4-455c-aa85-c548d35adc1b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

BJ

unread,
Sep 12, 2015, 7:48:51 AM9/12/15
to TiddlyWiki, louie...@gmail.com, jeremy...@gmail.com
tw.com  takes you to a taiwanese website! 
Message has been deleted
Message has been deleted

Mat

unread,
Sep 12, 2015, 8:51:19 AM9/12/15
to TiddlyWiki, louie...@gmail.com, jeremy...@gmail.com
On Saturday, September 12, 2015 at 1:49:07 PM UTC+2, BJ wrote:
tw.com  takes you to a taiwanese website!  


Hm, I replied - but deleted - answering that "anythingdotanything" was parsed by google groups as a link. This is at least the case when you write tw.com ...but for some reason not when you write foo.com (and there is a site named so).

Anyway, tw.com is merely short for tiddlywiki.com

<:-) 

Mat

unread,
Sep 12, 2015, 8:53:17 AM9/12/15
to TiddlyWiki, louie...@gmail.com, jeremy...@gmail.com
but for some reason not when you write foo.com (and there is a site named so).

GAAAH - I did some tests and they did NOT linkify... but now foo.com DOES. I dunno what to say.

Anyway: tw.com = tiddlywiki.com

<:-)
Reply all
Reply to author
Forward
0 new messages