[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Creating and coding my own database

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 24
Thread images: 1

File: database-parts.jpg (24KB, 512x512px) Image search: [Google]
database-parts.jpg
24KB, 512x512px
So there is this lad who came up to me with the idea of coding our own database from scratch , the problem is i dont have any idea how to start but i am always up for a challenge . So /g/ents would it be hard to create mine ?
>>
create table install gentoo
>>
If you have to ask then you are too retarded to do it. Just kill yourself, you fucking idiot.
>>
>>62361225
I'm postinh here to know if any of you had any experience in coding on and could give me tips, help etc
>>
If you are making it for educational purposes then google how they work. You will soon realize that you cannot make one anywhere near as efficient as what already exists.

If you are trying to make a product for people to use and do not know how they work I have some bad news.
>>
It's basically harder than rocket science.
>>
>>62361170
Literally why?
All you need to do to make a "database" is come up with a way of storing and retrieving data on a disk, but real database software is quite complex and requires an in-depth understanding of computer science and math. It's not a grest project to start out with as a beginner
>>
>>62361170
You must be smart if you're going to make something better than people have created, iterated on, recreated and done huge amounts of research on for almost 50 years. You must be up to date with everything that's happened, have some crazy algorithm skills, deep knowledge of operating systems and decades of industry experience. Are you literally Michael Stonebraker?
>>
>>62361170
if this is for education then i would recommend coding up an on-disk B+ tree. that's already pretty hard, and if you can't do that then you certainly can't write a database

writing a feature-complete database requires a pretty extensive knowledge of formal languages and abstract algebra
>>
>>62361170
http://infolab.stanford.edu/~ullman/dscb.html
>>
>>62361465
>name sounds like a dwarven king
>but is incredibly fucking tall
intimidating desu
>>
>>62361373
>>62361418
>>62361465
so to be fair, there is a big industry of "nosql" databases-from-scratch for dumbasses
>>
>>62361498
Going to start there then
>>
>>62361518
OP said he wants to make a database system, not a fucking shit-tier, serialized object store, rehash of the 2000s, half baked, "omg, XML everywhere" movement.
>>
At least use some non-ancient datastructure as a base, not that fucking B{*,+}-tree bullshit. Adaptive radix tree might work, it's pretty easy to come up with a concurrent and even lock-free version.
Just do something new, use it as a research opportunity, don't be yet another retard that writes a fizzbuzz+, also known as half-assed on-disk B-tree.
>>
>>62361170
download origodb source code.

https://github.com/DevrexLabs/OrigoDB
>>
>>62361585
sperg much
>>
>>62361582
Add dragon book, plus maybe as reference introduction to algorithms.
>>
>>62361170
Creating/reading/writing the database would be piss easy.

But writing an sql interpreter or something similar is more challenging
>>
>>62361170
databases are for chumps

I keep everything in CSVs and load them into a pandas dataframe
>>
>>62362625
Don't be silly
>>
>>62361170
Many special snowflake databases nowadays are built on top of LevelDB or LMDB's simple key value store functionality.
>>
>>62361912
Most valuable post right here.
>>
https://cstack.github.io/db_tutorial/
https://github.com/h2database/h2database
but there is no reason to use to in real world
Thread posts: 24
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.