Go to file
jordi fita mas 007f401d33 Add a cache of OID in database to register types
It makes no sense to retrieve the same OIDs each and every connection,
because they are not going to change unless the database is reset,
something it is very unlikely to happen in production.

Thus, it is best to query them the first time the application connects
to the database, that it is done at startup to query the available
languages, and then reuse the OIDs.

I can get away of using an “unprotected” map, instead of sync.Map or a
map in tandem with sync.RWMutex, because the application establishes a
connection at startup from a single goroutine and it registers _all_
types we will need to register within the application’s lifespan, hence
it there will be no more writes to that map once the web server is
listening for incomming connections.

This is risky, however, and i hope i do not have to regret it.
2023-10-27 12:30:05 +02:00
cmd/camper Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
debian Add the contact page, containing a map with the company location 2023-10-06 21:21:00 +02:00
demo Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
deploy Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
pkg Add a cache of OID in database to register types 2023-10-27 12:30:05 +02:00
po Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
revert Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
test Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
verify Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00
web Add the slug to the form in the campsite type public page 2023-10-19 21:38:44 +02:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Implement Redsys request signature in PostgreSQL 2023-10-27 01:52:04 +02:00