[Seaside] Re: [Q] Question on Magma (or other Persistence Engine for Squeak/Seaside)

Sungjin Chun chunsj at embian.com
Sat Apr 14 02:39:01 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brent Pinkney wrote:
> Hi,
> 
>> For me, the most difficult part is - and this is my major reason for
>> previous mail;
>>
>> 1. how to perform "SELECT something FROM ... WHERE NAME=xxx" kind of operation in ODB.
> 
> In Magma:
> 	people := self getMagmaCollectionForPeople.
> 	oldies := self people where: [ :p | (p name = 'Smith') & (p age > 60) ].
> 	oldies do: [ :p | p doSomething ].
> 
> See Lava is you reallywant to do SQL with a Magma database.
> 

I don't need SQL - I do not like it :-) - I just want to use dictionary
because I think inserting and retrieving to/from magma collection is not
O(1) like dictionary or SQL DB(I'm not sure). So if above code works
with speed, I have almost no problem on it. I think tag management part
will be next big problem for me.

>> Yes, I have almost no experience on this as you might already know, but
>> I cannot find proper example for me. I'll look on sushi store example.
> 
> I wrote the sushi store example, so you can ask me directly.
> 

Thanks in advance.

> 
> Brent
> 

Sungjin Chun
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGID7EQqspS1+XJHgRAg7UAJ0QJpV3jWNM+nxqwk5epW0o/UyolACcChP8
uaofR8jymmHmHn/QJsQGeSQ=
=ucs8
-----END PGP SIGNATURE-----



More information about the Squeak-dev mailing list