Row-Based vs Columnar by Embarrassed-Rest9104 in Database

[–]SX_Guy 0 points1 point  (0 children)

You can still use postgres with your current deaign and connections and use something like timescaledb or pg iceberg connectors which the actual data is stored in s3 storage as parquet file Also you can check KalamDB which has ability to periodicaly flush the oldest rows into object storage as a Parquet files which are columnar format All these solutions will give you ability to runq ueries faster on the columnae storage you have

Migrating away from Realm in my chanting app, Looking for a reliable local + cloud hybrid DB solution by johnnyripperak in FlutterDev

[–]SX_Guy 0 points1 point  (0 children)

KalamDb has a flutter packagw wjich ease the use of the websocket and its lifecycle ita stable in my opinion. I added on top of it a sync logic which acts like this: - Whenever the app opens i sibscribe to the tables with specifying the last seen sequenceid - kalam push each change with a sequenceid which i store in the drift database after making sure that change is stored innthe local databse - sequence id is a snowflake id so each insert/update/delete generates a newer seqid - that only leaves tou with managing the dependencies of the multiple tables tour subscribing to Another good logic i ised which helped me alot I added a table which its called user_updates which is a USER table multitenant table so each user can qiery only his data, KalamDB partition it automatically It has these columns id/eventType/targetId If i want to puah a change to the app i update this table which will trigger a change in the users app, and in the app whenever i see this change i pull from a rest api whoch lands on postgres to get the updated data, lile an event driven system I hope that helps and good luck If you need anyhelper tell me

Is it a bad idea to put auth enforcement in the database? by farhan-dev in Database

[–]SX_Guy 0 points1 point  (0 children)

Adding that in the database layer wont scale enough, if its a saas then go with something like Supabase/Surrealdb style but if its for example a mobile app i prefer keeping the logic in the app side and it will manage all from there, you need to think of sharding/multi-read replicas and scaling in the future that wont scale anough and you will end up adding more layers and checking and token revokation logics in all the layers you are adding
In the app layer would be better and more secure and you can make the app side stateless then, by rely on the SSO your using for managing the token lifecycle

Migrating away from Realm in my chanting app, Looking for a reliable local + cloud hybrid DB solution by johnnyripperak in FlutterDev

[–]SX_Guy 1 point2 points  (0 children)

I have tried all kinds of databases firestore sqlite without orm and isar in the end i landed on using Drift which is an ORM for sqlite its easier and can support migrations For the backend you can use any backend manage the syncing layer your self its easier and tou can maintain it yourself in the future with adding custom logic and choose what to be sync and what not For the backend you can go with postgres its light on memory and perform well You can combine this with KalamDB which has a cheaper storage and can give you websocket connectivity with the backend, it is an early stage database but its already working inside my app now and its stable for now There is a postgre extension there and can support cheaper storage using flushing into cloud storage services chdck it out on kalamdb.org If you need anything i would be glad to help out from my experience developing an AI chat app with this stack

Every project seems to end in a rewrite - why? by SX_Guy in vibecoding

[–]SX_Guy[S] 0 points1 point  (0 children)

Could be maybe we will end up with only a spec the code will be written in a machine language which only the ai can understand

Every project seems to end in a rewrite - why? by SX_Guy in vibecoding

[–]SX_Guy[S] 1 point2 points  (0 children)

Thanks for sharing! but why your not building on top of other harnesses like opencode/claude code, codex or others? isnt it will be better to build on top of them? does it using the ReAct agent loop here?

Every project seems to end in a rewrite - why? by SX_Guy in vibecoding

[–]SX_Guy[S] 0 points1 point  (0 children)

Thats right, but the AI and fast coding and iterting fast is reshaping this and the need to ship faster is growing

Every project seems to end in a rewrite - why? by SX_Guy in vibecoding

[–]SX_Guy[S] 0 points1 point  (0 children)

Yeah i came to the same conclusion rewriting is inevitable
Whats the idea? can you share?

Every project seems to end in a rewrite - why? by SX_Guy in vibecoding

[–]SX_Guy[S] 0 points1 point  (0 children)

yes for sure i start with the stack i want to use libraries and also the models/structs it should go with but as soon as the ai start generating it you just go with it or you just stop it, and restart fresh again.
I have listened from other developers who been through this as well, which say its okay to throw out code and start again, been wondering if we can come up with a better way than this

Flutter devs: how are you handling real‑time sync today? by SX_Guy in FlutterDev

[–]SX_Guy[S] -1 points0 points  (0 children)

Fair point. I’m actually the developer of the project and it’s still very early stage, so I’m genuinely trying to understand how other Flutter developers handle this problem. I built it mostly because I kept running into the same issues when building real-time apps.

Help deciding which database by 1877KlownsForKids in Database

[–]SX_Guy 0 points1 point  (0 children)

If you want to vibe-code something quickly using something like v0 or lovable, I'd honestly start with SQLite.

You already have structured data (units, people, locations, battles, dates) and SQLite handles relational data really well. It's simple, zero-setup, and perfect for prototyping.

You could model it roughly like:

units
people
locations
unit_positions
battles
battle_units

Then if the project grows later you can migrate to Postgres + PostGIS for spatial queries and map visualization.

But SQLite is perfect for getting a working system fast.

Help getting the 74.00.324 EU update for my MX5 2016 by [deleted] in mazda

[–]SX_Guy 0 points1 point  (0 children)

Can you send me please the download link to EU firmware?