Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are alternatives to SQL database storage for a web site?

Tags:

sql

php

cgi

lamp

An SQL database is overkill if your storage needs are small. When I was young and dumb, I used a text file and flock()ed it when I needed to access it. This doesn't scale, but I still feel that non-database solutions have been completely ignored in Web 2.0.

Does anyone not use an SQL database for storage? What are the alternatives?

like image 876
Steve Hanov Avatar asked Mar 24 '09 12:03

Steve Hanov


People also ask

What is the main alternative to storing data in a database?

SQLite is also a good option. No need to install a server. SQL Server Compact Edition doesn't require a server either. Like SQLite, it runs in-process.

Is SQL still used in websites?

For businesses, the quick answer is yes. Even with tableless databases such as MongoDB and Firebase becoming mainstream, and being advocated for by developers as well as being used in increasing proportion, SQL is still relevant — especially from data persistence and scalable cost perspectives.


1 Answers

There are a lot of alternatives. But having SQLite which gives you SQL power combined with no fuss of file based storage, there is no need to look for these alternatives. SQLite is light enough to be used in cell phones and MP3 players, so I don't see how it could be considered an overkill.

So unless your application needs something very specific, don't bother. Most alternatives are a lot harder to use and have less performance.

like image 56
vartec Avatar answered Oct 12 '22 00:10

vartec