Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What are some alternatives to a database?

Name: Anonymous 2012-12-19 19:03

I want to store data and read/modify it on my Web server using Perl. I don't need something big and scary like SQL. Are there any modules or even just standard syntax for plaintext files to do this?

Name: Anonymous 2012-12-19 19:07

XML

Name: Anonymous 2012-12-19 19:07

>>2
Fucking epic.

Name: Anonymous 2012-12-19 19:10

http://blosxom.sourceforge.net/

I have no idea why most ``content management systems'' aren't written like this. Huge MediaWiki and WordPress sites, I can understand, but you don't need MySQL for your personal web site that gets fifty hits a month.
Flat files and the existing file system work fine for HTML, they work fine for most dynamic sites too.

Name: Anonymous 2012-12-19 19:20

DBIx::Class + DBD::SQLite or DBD::DBM

There is DBD::CSV if you really want plain text, but please don't.

Name: Anonymous 2012-12-19 19:21

>>4
Concurred. And make the scripts_w/cron|daemons that update your flat HTML w/ tags to make ,,Dynamic-ish``. This is old shit, even for harmful perl.

However, when you need to archive shit, and secure it, dbs like these are awesome:

Berkeley DB: oracle.com/us/products/database/berkeley-db/overview/index.html
SQLite: sqlite.org
NoSQL: strozzi.it/cgi-bin/CSA/tw7/I/en_US/nosql/Home%20Page

Name: Anonymous 2012-12-19 19:40

If SQL is ``big and scary'' to you just admit you're a worthless code monkey who doesn't understand relational algebra enough to design elegant schemas and queries. SQLite is incredibly lightweight, efficient and powerful.

Flat files? Are you fucking serious? Go back to cat-v dumb ass.

Name: Anonymous 2012-12-19 22:38

>>7
relational algebra enough to design elegant schemas and queries.
That was ENTERPRISE QUALITY!

Name: Anonymous 2012-12-20 0:15

>>8
Relational algebra is not a buzzword, it's a branch of logic. A flat file database requires you to  traverse your table and write schema specific code that changes with your database design. It's the same brute force, unscientific and ultimately destructive code monkey approach to parsing XML in Java.

I guess you prefer bubble sort to quick sort because optimization and elegance is too ENTERPRISE for you.

Name: Anonymous 2012-12-20 0:26

SQLite is excellent, and is exactly what you're looking for.

``The AWK Programming Language'' has examples of building flat-file databases, but why would you bother when SQLite Just Works and will be far more performant?

Name: Anonymous 2012-12-20 2:05

Databases are slow as shit because half the time you don't need the extra features bloat.

How the fuck do you think databases are implemented? It's all files in the end. Cut out the middleman.

Name: Anonymous 2012-12-20 3:13

Flat files is recommended if you want hilarious VIP quality injections down the road.

Name: Anonymous 2012-12-20 3:27

>>11

7/10 I'm responding seriously:

Implying your shitty homebrewed linear search on a flat file will outperform a database system written by experts and optimised over years.

Especially something like SQLite.

Name: Anonymous 2012-12-20 4:04

>>13
More like, written by overworked code monkies, patched together when ever needed. Or in the case of open sauce, written by random clowns.
Why do you feel databases are so special, hard to grasp basic I/O and search trees?

Name: Anonymous 2012-12-20 4:15

>>14
implying you're not a random clown
You'll avoid having to write and troubleshoot a parser, your data will be more easily accessible and cross-platform, and your updates will be transactional.

Name: Anonymous 2012-12-20 4:26

>>15
Why would you want to update a value (that is destroying previous data)? That's a database trying to be the monkey, while it only should record what the monkey does. Infact I wouldn't even call it a database if it is designed to destroy data.

Name: Anonymous 2012-12-20 4:39

>>15
Why do you need a parser, for SQL? Do you need SQL? Why?

What's wrong with an imperative language and exposing the structures needed to get relevant data on the client side. You know, that might even make it possible to store the most fundamental data structure, the graph. Do you know what that is? What is a database that can not efficiently store and traverse the most fundamental data structure?

Name: Anonymous 2012-12-20 4:44


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List