Plan9's ndb as a General Purpose Database.
Vložit
- čas přidán 19. 05. 2024
- This is a quick showcase of ndb plan9's network database.
This tutorial is focused on ndb for those wondering where to get ndb you can either install plan9port or run one of the many forks and versions of plan9 such as 9front.
Let me know what you think and if there is anything specific you would like to learn about.
Github: www.github.com/gavinok
vimrc: github.com/Gavinok/dotvim
Resume: github.com/Gavinok/Groff-resume
Discord: / discord
Timecodes
00:00 - Intro
01:08 - What is ndb
01:49 - How ndb works
01:58 - Example file structure
03:31 - Querying with ndbquery
04:18 - Benchmarking ndb vs recutils
05:43 - Using multiple files
06:48 - Speeding up ndb
10:05 - Outro
Shout out to Humm who recommended the great video idea. For those of you asking where to get ndb you can get it with plan9port at (9fans.github.io/plan9port/) otherwise you can install one of the many versions and forks of plan9 such as 9front.
Great video. I've been tinkering with Plan9 for a while, but didn't even realize this feature was hidden in plain sight.
Thanks, for a video. I've also some time ago thought about some simple to use database and found the Prolog language can be used as an *excelent* database and then you have a full Turing complete language together with it. It is so simple that I've used it as a default format for a logger for my program, and I could immediately do some advanced analysis of data without any additional tool. So you can also give it a try.
Very cool! Many of the advantages of a traditional database, with all the advantages of text (less likely to get corrupted, can use ordinary version control tools like git on your data, etc.)
Oh! This is _so_ cool! :D I've never really worked with databases, but I guess I could use this for birthdays and create a few scripts around it :) Thanks!
The video hasn't even been released but I can still tell this is gonna be good :)
Turns out I wasn't wrong
I am sorry to hear you feel that way.
@@GavinFreeborn What do you mean? I thought the video was great. I wasnt wrong in because I thought it was gonna be good
@@FirstLast-kv1iq haha I first read it as "I was wrong" haha. Now I realize that I was mistaken. A classic case of tired eyes playing tricks on me.
Very nice video. Got a subscription.
I use a ton of ndb in my programs, it's so simple to use and implement; and powerful enough to do everything I need
Great! Can you give me some advice on how to get started?
@@iftekharriyad3006 on 9, the libs are built right in; but outside of that there's a parser in Go iirc in the 9fans github repository; as well as some out in the wild written in C
Very cool
Two things, first is this video was awesome and I would love to see more plan9 related contented. Second, may I ask if you are using zsh? if so how did you configure it? with ohmyzsh? from scratch? I really like your shell prompt, maybe a video idea.
Ya its zsh. I just did it myself I dont know if it is worthy of a hole video since it is a pretty simple setup. Here is the current setup.
gist.github.com/Gavinok/aa40945e258d5745ea2e0626fd5933a5
Feel free to hit me up on discord if you have any questions.
How does the mkhash work? ndb(1) shows it makes new files, but how does it maintain links from the hashtable into the db if the db changes?
A lot of the Plan 9 software is just great. Just compare the plan9 core utils with GNUs.
And there's a C API for ndb
Ya it great I haven't used it myself but if others are interested I'll definitely give it a try.
one thing that interests me is how plan9's ndb compares with berkeley db?
suck as 9front, is it typo or you don't like this fork ? xD
Haha ya it was a typo. I may have been in a bit too much of a rush when uploading this video. 😅
J
Please lower screen resolution!
You say "You guys" one. more. time. and I will publicly downvote this otherwise very interesting video!
full ack.