Big change in master

14 views
Skip to first unread message

Marc Worrell

unread,
Apr 23, 2020, 11:47:24 AM4/23/20
to 'Marc Worrell' via Zotonic users, 'Marc Worrell' via Zotonic developers
Hi,

Big change coming - one of the last breaking changes before the first 1.0.0a1 release
We are changing the format of the rsc and medium records to binaries and maps.

This makes it possible to insert random keys into those records, without having
them mapped to atom and thus exhausting the atom table.

It will also make it possible to move (in a later version) to JSONB as the storage format.
JSONB is natively supported by PostgreSQL, which can search and index individual properties.

The update will also change the m_get routines, as all atoms will be binaries instead.
So m_get( [ hello ], …) will now become m_get( [ <<"hello">> ], …)

As the rsc and medium records are now maps, you will need to change
some observers that handle rsc or medium property lists to handling
maps with binary keys.

The pending merge request is:

https://github.com/zotonic/zotonic/pull/2406

Cheers,

Marc

Reply all
Reply to author
Forward
0 new messages