From: Steve F. <sfi...@pc...> - 2004-03-18 22:31:22
|
thomas- see below Thomas Otto wrote: > Hallo, > > I am programming the parser for the kegg tables... (the moment I > arrived at a beta stage, I will provide the stuff) > > 2 Questions: > - When I am initialing a new object, like "my $Reaction = > GUS::Model::CLASS::REACTION->new('NAME'...." does the variable > $Reaction holds all the values of the table? I have an explosion of my > memory need, I cannot feed! no. it only holds the data for one row. but, if you are creating lots and lots of objects, the cache may be getting very big. after you are done with your objects (like at the bottom of your loop), within the plugin, call $self->undefPointerCache() to empty the cache. See GUS::Rad::Plugin::ProcessResultLoader > > - Does a method exist that does following: "select PRIMERYKEY from > other_tables where OTHER_ROW='something' ?" you can create an object of the Other type by saying Other->new(hash) where the hash has the values you want to select on. You will get back the first object that matches those values. Then you can get the object's primary key. steve > > That's it > > - Thomas > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > Gusdev-gusdev mailing list > Gus...@li... > https://lists.sourceforge.net/lists/listinfo/gusdev-gusdev |