Hook
More breakout videos from this creator.
Should you use PostgreSQL or SQLite? Both are very useful and each has their strengths. I'm glad you asked. They're both relational databases, but they have vastly different strengths and weaknesses. And picking one of the wrong databases is one of the most common mistakes I see new developers make. Okay, that makes sense. Tell me a little bit about SQLite. Unlike other databases, SQL server at all. It's literally just a text file that you can interact with using SQL. This means it's very fast and lightweight and you usually run it within some other application. For example, iMessage uses SQLite locally to let you store your message information. Do people actually use this? Basically everyone. Sequel Lite could be one of the most widely used databases ever. It's on every Android, every Mac, every iPhone and most Windows installations. Alright, so what about PostgreSQL? When you're building something that needs a shared database, normally reach for PostgreSQL. PostgreSQL runs on its own dedicated servers. You can scale it up and down independently. It can handle huge amounts of concurrent requests, handles things like transactions and is very, very useful for real production systems. Alright, so when should If you want a fast, lightweight local database, use SQLite. If you need a shared database for your back end, use PostgreSQL.