[ic] Getting started...

Jon Jensen interchange-users@icdevgroup.org
Tue Jun 10 13:28:01 2003


On Tue, 10 Jun 2003, Patrick Galbraith wrote:

> Thanks so much! Yeah, I saw the session file yesterday. It looks like
> they're using Storable to put a serialised hashref in that file.

Interchange uses Storable if it's available, but otherwise falls back to
using Data::Dumper.

> At classmates.com, we do the same thing, but put it in a blob column of
> sessions table keyed by a user's session ID. It mainly contains user
> information. I wonder if that might be something to modify the
> Interchange codebase to do. I like having all my data in one central
> place, namely a RDBMs.

Interchange can do that. You specify the table name with the SessionDB
configuration directive. I'm not sure there's much documentation on it. I 
think your table needs to have at least 3 colums: session_id varchar(64), 
session BLOB (or maybe TEXT), and sessionlock varchar(something). Check 
the mailing list archives for help, and/or read lib/Vend/SessionDB.pm and 
lib/Vend/Session.pm for gory details.

Historically it's been recommended that people not use SQL/DBI sessions,
as it has tended to be slower than using disk files. But some people use
MySQL for sessions in a clustered setup, as opposed to sharing session
files via NFS.

> Does anyone know what the actual performance of the templating language 
> that interchange uses?

I don't know of any tests just of the page parser.

> Has anyone used the templating engine for other applications?

It really isn't separable from Interchange as a whole.

Jon