Pier user data stored in filesystem was Re: [squeak-dev] Cuis

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Pier user data stored in filesystem was Re: [squeak-dev] Cuis

dcorking
On Mon, Jan 25, 2010 at 4:25 PM, keith wrote (on the squeak-dev list) :

> pier keeps its data in image.

I know the following info is unlikely to help your current
application, but, in the interest of completeness, I will observe that
at least one Pier application stores its user data in the host
filesystem, not the image. That application is WikiServer (John
McIntosh's cross-platform personal wiki for the iPhone)

I only have superficial familiarity with Pier and WikiServer:  as far
as I can tell, the persistency code uses MAExternalFileModel, but
sadly I can't guess if the effect is available to all Pier developers,
or proprietary to WikiServer.
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Pier user data stored in filesystem was Re: [squeak-dev] Cuis

Lukas Renggli
> I only have superficial familiarity with Pier and WikiServer:  as far
> as I can tell, the persistency code uses MAExternalFileModel, but
> sadly I can't guess if the effect is available to all Pier developers,
> or proprietary to WikiServer.

All uploaded files are handled externally to the image using
MAExternalFileModel, unless you changed the default to use
MAInternalFileModel. This is part of Magritte and has been in use for
many years already. These file-models are only used by Pier for
uploaded files though. MAExternalFileModel essentially models a
ByteArray that is external to the image and that can be served through
Apache. I don't think that MAExternalFileModel is useful to persist
the rest of the Pier model, but there are always surprises :-)

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: Pier user data stored in filesystem was Re: [squeak-dev] Cuis

johnmci
In reply to this post by dcorking
Well I should read all the email first.

the source code can be looked at by following the links from
http://www.mobilewikiserver.com/1.4.html
and getting the desktop version.

No magic is involved, it's just an object fileout of the Pier root.    

There are some changes to the object file out logic to uses a buffered UTF8 stream and a few minor changes in the object to serialization logic for performance reasons.
Thus the file out runs in 50% of the time that it normally would.    No doubt using the Squeak buffered multi-byte stream change would achieve mostly the same thing.

I'd like to convert this to image segments, as soon as someone figures out a rational subset of that missing all the etoy & project cruft.

On 2010-01-25, at 9:13 AM, David Corking wrote:

> I only have superficial familiarity with Pier and WikiServer:  as far
> as I can tell, the persistency code uses MAExternalFileModel, but
> sadly I can't guess if the effect is available to all Pier developers,
> or proprietary to WikiServer.
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki

--
===========================================================================
John M. McIntosh <[hidden email]>   Twitter:  squeaker68882
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================





_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki