[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
what /g/ think about flat file db meme? https://github.com/
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 11
Thread images: 1
File: flat-file.jpg (92 KB, 677x401) Image search: [Google]
flat-file.jpg
92 KB, 677x401
what /g/ think about flat file db meme?

https://github.com/ahadb/flat-file-cms
>>
I have never used an actual db in my life.
I always just query vectors like this
>>
Simplicity
Speed
Security
Version Control
Maintenance
Portability
Less expense (server)
>>
Fullblown databases are unnecessary for most data storage needs, and for most processes that create data that needs to be stored, it's easier to make flat files.

That said it's usually pretty easy to know ahead of time when you're going to need to make complex queries and a full db is necessary
>>
>>54393034
a "real" (legacy) DB doesn't really add much in terms of performance these days unless you have really big data sets in which case you are better off using some kind of "cloud" data store anyway.

For my own programs I store everything in flat files where possible. JSON or CSV mostly. I can't stand programs that store there resources (configs, data, etc) in obfuscated/binary files for no reason.

On a modern computer you can search a 50MB flat data file in under a second. desu even sqlite is overkill for most things.
>>
>>54393034
it the layer doesnt cache anything it's not worth using on a multiple user system
>>
I've created a few flatfile databases and used them on websites. CMS, MVC and even used one for a flatfile imageboard. I like them personally.
>>
>>54393034
How to save Input that have tabs in them?
>>
>>54396649
Flip the space bits to tabs
>>
>>54393034
I use xml for most of what in doing. There's just no need for the complexity of a full database when only two or three items get changed, and read a few times.
>>
>>54393034
i would rather use sqlite, tyvm
Thread replies: 11
Thread images: 1

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.