News for hackers. Stuff that matters.
Re:Back to basics: Writing an application using Go and Postg... by caseyohara on Monday November 22, 2021 @07:55PM (#29313441)
Does it persist data to disk in memory mode? If not, then I'm not sure I see the point.
Re:Back to basics: Writing an application using Go and Postg... by pstuart on Tuesday November 23, 2021 @02:22PM (#29322060)
If by persist to disk you mean "when you're done", it can by replicating the db to a file. Another option is to back it up over the network, e.g., https://github.com/benbjohnson/litestream
Re:Back to basics: Writing an application using Go and Postg... by rakoo on Tuesday November 23, 2021 @09:59AM (#29318540)
SQL is a very nice querying language, if you can stuff your data in it and run structured queries instead of some spaghetti code it can help a lot. This is the same domain as redis initially, ie a "database" with helpful structures and data types for simple data mangling
Re:Back to basics: Writing an application using Go and Postg... by tekstar on Monday November 22, 2021 @08:58PM (#29313803)
It's great for running tests in parallel.

Or for working with data in memory.

There's a whole world of software outside of saas crud

Re:Back to basics: Writing an application using Go and Postg... by candiddevmike on Monday November 22, 2021 @09:10PM (#29313866)
An in memory database isn't the same thing as PostgreSQL in this context though.