Authentication-Results: mail-b.sr.ht; dkim=pass header.d=net-c.cat header.i=@net-c.cat Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by mail-b.sr.ht (Postfix) with ESMTPS id 2D22611F284 for <~qeef/damn-project@lists.sr.ht>; Wed, 14 Dec 2022 13:50:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=net-c.cat; s=mailo; t=1671025809; bh=6231hZASWPLo0rGetv2FVOSxX4dXz6TDVqCp+E7NkYg=; h=X-EA-Auth:Message-ID:Date:MIME-Version:Reply-To:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=Uq5brZ1S25sLdJR/D4jAuQEV/bqtCJHSFVbeqs94QcX1P5mH1XOXMXTW/MOkcsH+n xbYtVr+zsYznrlW2pEtXo5ZOZ5jBRI3mGjuq/yPDwD/BbTDUXihMzFojZlm8ZZl709 dQhx+PXtJPw/0Wx1g5ZBpAvAt2sNNibdeH5IYo/8= Received: by b-1.in.mailobj.net [192.168.90.11] with ESMTP via ip-206.mailobj.net [213.182.55.206] Wed, 14 Dec 2022 14:50:08 +0100 (CET) X-EA-Auth: pZsp+BgBWiW7qZ3CTTB6AHSGwHJbgJ4zhz9Kvcfp3KuVYS8pkpryLI5cQQuLCrmMdGD6n/dBxpLDtCUFrgefDV+EmZJk8dZC Message-ID: <27ef17e6-7fe2-fe5e-5338-776207cd17e0@net-c.cat> Date: Wed, 14 Dec 2022 13:50:02 +0000 MIME-Version: 1.0 Reply-To: github-siiky@net-c.cat Subject: Re: SQLite as DB alternative To: Jiri Vlasak Cc: ~qeef/damn-project@lists.sr.ht References: From: siiky In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thanks for the reply! There's at least SpatiaLite[0] as a GIS extension for SQLite. How good it is, and how it compares to PostGIS (feature-wise and language-wise) I don't know, I haven't used either. RE loads: that makes sense, though it's possible to tweak SQLite for better performance in concurrent contexts (such as enbaling WAL mode[1][2]). It's also possible to serialize SQLite access (e.g. with a "proxy class"), and with more SQLite tweaks (allowing it to assume single-process and single-thread[3], plus [4]), I doubt it would be much slower than Postgres. (Aside: I had a big performance improvement by enabling WAL mode in a two-writers scenario, where one of them rarely writes and the other mostly reads. But I can't comment much more than that, I would need to try things out in context.) For context, what prompted the email was that I'd like to use DAMN for small (1 person) tasks and but feel it's overkill to use your public instance. So I'd like to run DAMN on my desktop/laptop but I'm not too keen on having to setup Postgres+PostGIS (it's just overkill for this usecase). [0]: https://www.gaia-gis.it/fossil/libspatialite/index [1]: https://www.sqlite.org/wal.html [2]: https://www.sqlite.org/pragma.html#pragma_journal_mode [3]: https://www.sqlite.org/faq.html#q6 [4]: https://www.sqlite.org/pragma.html#pragma_locking_mode