What does "aviation-grade" mean in a software context?
A Minimalist Guide to SQLite
91–100 of 127 posts
Re: A Minimalist Guide to SQLite
#92Sqlite is great as data store for storing JSON. We receive realtime data from different sources in JSON format. I dump the raw data into MongoDB, but it's still not very easy to query. This is where Sqlite comes in handy. I import the data straight into Sqlite from MongoDB which then enables me to run SQL queries using the JSON1 extension. Currently I'm using it to store data that drive feed simulators. We can extrac…
Re: A Minimalist Guide to SQLite
#93Re: A Minimalist Guide to SQLite
#94Earlier quoted context omitted.
Strictly speaking, SQLite is dynamically typed in a sense, because the database does not enforce the values in the rows match what the columns claim about the type. But from a developer experience point of view, the main difference between dynamic and static typing is the following: Dynamic typing requires a lot of extra checks to ensure everything is what you expect it to be, and a lot of annotations to document wha…
I agree with your point, but disagree with the example. RE static vs dynamic typing, I'd say that it's dynamic typing that has higher cognitive tax - you as a programmer are fully responsible for ensuring types agree up everywhere, whereas with static typing, all of that job is done by compiler. It's easier to change stuff in the code when you know the compiler will catch your dumb mistakes. And I say that as someone…
Yes, that's exactly what I said.
Re: A Minimalist Guide to SQLite
#95Earlier quoted context omitted.
> queue those up in a list (in the code) That won't work in the language that most server-side website code is written in. PHP processes are created and destroyed per HTTP request, and even the FastCGI implementation won't let one share data across requests. PHP does have a sessions feature, but that data is written to either the filesystem (by default) or a database on every request!
It's pretty common to write session data in memory eg. memcache/redis.
Re: A Minimalist Guide to SQLite
#96Only thing that I miss in a database software is some sort of spatial indexing implementation. I wish sqlite would have one by default.
Re: A Minimalist Guide to SQLite
#97Earlier quoted context omitted.
Docker is its own nightmare :/ I just find it weird and confusing. Also, how do you setup a database in docker? Docker does not support persisting data as far as I know. So if you need to restart the thing, all the data will be wiped. At least that's how it seems to be.
The instructions on the link I gave are clear about using volumes to persist data. It is a very quick read and definitely worth your time. Ease of postgres deploy is what made me a docker fan.
Re: A Minimalist Guide to SQLite
#98Earlier quoted context omitted.
Instead of doing all of that, you could also do it without docker. Simply install postgres via your Linux distro and run e.g.: /usr/lib/postgresql/9.5/bin/postgres -D .mydatadir
Sure you can do that, but if your app needs to use other services (Redis, for example) you can easily throw that in the compose file as well, and then it's easy to maintain versions and have every developer be on the same page. This is especially helpful if some developers use OS X or Windows. I don't understand the "all of that" phrasing, as if what I just described was a large amount of work.
My whole point is that I want to simplify my setup, so that I don't need tons of third party servers.
Re: A Minimalist Guide to SQLite
#99Earlier quoted context omitted.
Eh. Definitely not reliable in my experience. I don't use SQLite directly, but I use apps that save stuff in it. I've had issues of losing data because the SQLite DB became corrupt. Although to be fair, I have no idea if this is any less common with other DB's.
If you don't think sqlite is reliable, don't ride in an airbus a350 ;) https://sqlite.org/famous.html
Anyone know more details?
Edit: ok, I believe it now: https://www.sqlite.org/th3.html
Re: A Minimalist Guide to SQLite
#100Earlier quoted context omitted.
I think it's not used widely enough yet. For example, 99% of websites could benefit from using SQLite instead of MySql or (god forbid) PostgreSQL. I mean Postgres is a fine piece of software but if your website gets 500 visits a day, you don't need Postgres; just use SQLite.
So I'm actually doing this right now, I write about it on my blog. None of the apps I've written have hitten any kind of crazy traffic peak, so I started wondering why the hell I was using postgres or other database types after reading https://www.sqlite.org/whentouse.html . Seeing how simple SQLite has been for me to use has inspired me to write a bunch of dead-simple good-enough approximations for other tools that…