DAL array field handling

53 views
Skip to first unread message

Lucas

unread,
Jul 31, 2025, 7:11:39 AMJul 31
to py4web
hello one and all,

I'm considering using PostgreSQL (psql) array field types as the backend of a py4web app.  does py4web allow for that in db.define_table?  how would one insert, update, and query that field?  does py4web simply handle it as a python list?

also but a bit separate from py4web, would psql allow for indexing on that array field?

thank you in advance, Lucas

Massimo DiPierro

unread,
Jul 31, 2025, 6:14:15 PMJul 31
to Lucas, py4web
It is not a very efficient field. You can efficiently search and index it. As far as python is concerned it is just an array stored as a string

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/4e3d0844-b404-45f0-bc9e-585a8c9e1044n%40googlegroups.com.
Message has been deleted

Lucas

unread,
Aug 5, 2025, 1:20:30 PMAug 5
to py4web
alright, Massimo, I stay old school master-detail on this then.
Reply all
Reply to author
Forward
0 new messages