Zotonic
Zotonic
zotonic@conference.zotonic.com
Friday, 28 December 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

GMT+1
[08:43:42] maas.maarten.zeeman87764 leaves the room
[09:50:04] Maas joins the room
[09:50:22] Maas leaves the room
[10:04:24] Arjan joins the room
[10:13:17] Arjan leaves the room
[10:44:27] andreas.stenius joins the room
[11:09:44] Arjan joins the room
[11:23:24] Maas joins the room
[11:45:36] <Maas> arjan, do you know if z_db:get_parameter is used in other modules?
[11:46:14] <Maas> it is used to get postgres specific settings for date formats and such.
[11:50:39] <Arjan> hey
[11:50:43] <Arjan> hmm
[11:50:45] <Arjan> I can grep... :p
[11:51:10] <Arjan> does not seem like its used
[11:51:47] <Arjan> +1 for making it private
[11:51:48] <Arjan> :)
[11:54:01] <Maas> hehe thanks.
[11:54:30] <Maas> mod_backup seems to be the only module which directly calls pgsql
[11:54:56] <Maas> Wondering if I should make a db dump function in the db layer.
[11:55:25] <Arjan> that would be nice
[11:56:42] <Maas> maybe you knew if marc uses it for maxclass or some of the other sites.
[11:56:53] <Maas> (the get_parameter that is)
[11:59:11] <Maas> ignoring the dump for now :-)
[12:02:36] <Arjan> :P
[12:02:40] <Arjan> I'll check maxclass
[12:04:46] <Arjan> get_parameter is not used in maxclass
[12:04:54] <Arjan> safe to make private
[12:05:23] <Arjan> z_installer also uses pgsql directly btw
[12:05:30] <Arjan> but you probably already noticed that
[12:11:09] <Maas> Yup. Skipping the z_installer code right now.
[12:13:11] <Arjan> :)
[12:23:17] <andreas.stenius> puh. just finished a rather lengthy reply to Hans on zotonic-dev
[12:26:02] andreas.stenius leaves the room
[12:28:57] Andreas Stenius joins the room
[12:29:43] <Arjan> Andreas Stenius: impressive reply!
[12:30:37] <Andreas Stenius> thanks :) (I know I was fishing for it... but it took the better part of an hour to type :p )
[12:33:01] <Arjan> :)
[12:33:40] <Maas> indeed, nice explanation.
[12:33:42] <Andreas Stenius> btw, num_units seems to be undocumented..
[12:33:50] <Andreas Stenius> for custom pivots...
[12:34:11] <Arjan> num_units?
[12:34:17] <Andreas Stenius> in Jeff's mail...
[12:34:34] <Andreas Stenius> he sent one to use for review before posting it to the list... (!)
[12:34:38] <Andreas Stenius> us*
[12:35:03] <Arjan> yep I saw
[12:35:16] <Arjan> I think num_units is just an example for the hotel use case?
[12:35:26] <Andreas Stenius> oh
[12:35:29] <Andreas Stenius> ok
[12:36:58] <Andreas Stenius> I'll have to dig into the whole custom pivot stuff some time...
[12:43:29] maas.maarten.zeeman joins the room
[12:47:23] <Maas> Yeah... getting the config via new driver.... have to tweak assoc a bit I see.
[12:47:52] <Arjan> cool
[12:48:04] <Andreas Stenius> :)
[12:48:34] <Maas> some stuff is a bit tricky. slightly different api. timeouts a bit different
[12:52:08] <Maas> hmm, no test case available for the current assoc implementation
[13:07:31] maas.maarten.zeeman leaves the room
[13:37:50] <Maas> yeah, a site now starts...
[13:38:50] <Maas> twittering appmon picture of the db connection pool
[13:39:24] <Arjan> :D
[13:46:41] <Maas> Wondering if I should put the pool in the zotonic supervision tree or not.
[13:48:13] <Arjan> where is the current one?
[13:48:43] <Maas> Sort of invisible :-)
[13:49:02] <Maas> no, in the zotonic tree
[13:49:42] <Maas> same location as this one. poolboy pre-spawns 10 connections
[13:53:39] <Arjan> is the pool per-site?
[13:54:09] <Arjan> or how does that work
[13:54:22] <Arjan> if so it makes sense to put it in each site supervisor
[13:54:51] <Maas> Yes, per site.
[14:16:20] <Maas> That is a good location indeed. Could also start the db pool separately under a different supervision tree. With an ensure started or something. That could speed up site restarts.
[14:16:42] <Maas> The new db layer has its own supervision tree for connection pools.
[14:18:16] <Arjan> makes sense to keep it in its own tree
[14:34:51] Maas leaves the room
[14:41:09] Arjan leaves the room
[15:31:08] Maas joins the room
[17:51:33] Maas leaves the room
[19:27:10] Arjan joins the room
[19:32:22] Arjan leaves the room
[23:14:43] Andreas Stenius leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!