3 ms·
I have a hobby project where I have two different kinds of IDs and I have to maintain lookups of one type of ID to another and vice versa. It's a web socket ser
by godot 6y ago
I have a hobby project where I have two different kinds of IDs and I have to maintain lookups of one type of ID to another and vice versa. It's a web socket server with no need for a persistent data store.
Rather than maintaining two separate hash maps and keeping them both updated, it was easier to simply have a sqlite instance in memory and do inserts/updates/selects in sql.