Grokbase
Topics Posts Groups | in
x
[ help ]

Moritz Onken (o...@houseofdesign.de)

Profile | Posts (16)

User Information

Display Name:Moritz Onken
Partial Email Address:o...@houseofdesign.de
Posts:
16 total
2 in Catalyst Framework
7 in DBIx::Class
7 in HTML::FormFu

5 Most Recent

All Posts
1) Moritz Onken [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?
paperclip | +1 vote
Hi, especially mst, we talked about rewriting _collapse_result to allow multiple has_many joins on...
dbix-class@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Am 10.10.2008 um 14:37 schrieb Moritz Onken:

> After talking to mst, the exception was degraded to a warn.
> Patch attached.
>
> greets,
>
> moritz
>
> <
> resultset
> .diff><test.diff>_______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk


Hi, especially mst,

we talked about rewriting _collapse_result to allow multiple has_many
joins on the same level.
I added some code to it, which basically removes any duplicates.
I know we talked about that on IRC and you told me that this is dirty
hack. As of that the code is only run if you set distinct => 1.
If set so the results are exactly what you would expect, no duplicates!

Please have a look and tell me if this is working for you or if we
should try something else.

Attachment: 77collapseresult.t

Attachment: unnamed_plain_text.txt

Attachment: resultset.diff

Attachment: unnamed_plain_text.2.txt
2) Moritz Onken [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?
paperclip | +1 vote
After talking to mst, the exception was degraded to a warn. Patch attached. greets, moritz...
dbix-class@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
After talking to mst, the exception was degraded to a warn.
Patch attached.

greets,

moritz

Attachment: resultset.diff

Attachment: test.diff
3) Moritz Onken [Catalyst] Troubleshooting Help Please
| +1 vote
Actually you need to set that parameter somewhere else. See the docs to Session::Store::FastMmap...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Am 06.10.2008 um 16:14 schrieb Moritz Onken:

>>
>>   Authentication
>>                Session
>>    Session::Store::FastMmap
>>    Session::State::Cookie
>
> Storing the session with FastMmap is not a good idea. If the
> cache_size
> of FastMmap is exhausted it starts dropping sessions to make space
> for new sessions.
>
> You can change the cache size by setting it like this (default is
> 5mb):
>
> cache:
>    backend:
>        class: Cache::FastMmap
>        cache_size: 100m

Actually you need to set that parameter somewhere else.
See the docs to Session::Store::FastMmap fore more information.
4) Moritz Onken [Catalyst] Troubleshooting Help Please
| +1 vote
Storing the session with FastMmap is not a good idea. If the cache_size of FastMmap is exhausted it...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
>
>   Authentication
>                 Session
>    Session::Store::FastMmap
>    Session::State::Cookie

Storing the session with FastMmap is not a good idea. If the cache_size
of FastMmap is exhausted it starts dropping sessions to make space
for new sessions.

You can change the cache size by setting it like this (default is 5mb):

cache:
     backend:
         class: Cache::FastMmap
         cache_size: 100m

But I'd suggest you change to Session::Store::DBIC or something else
which does not drop sessions if you run out of space.

greets,

moritz
5) Moritz Onken [Catalyst] Testing RESTful web services
| +1 vote
It's Content-type => ...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Am 05.10.2008 um 10:47 schrieb Ian Docherty:

> Hi
> I am writing a simple test to test a POST method in a web service
> but my controller does not see any content in the POSTed request.
>
> In the controller both the $c->request->body and $c->request-
> >content_length are undefined.
>
> Any ideas?
>
> ------ test.t -------
> use strict;
> use warnings;
>
> use Catalyst::Test 'MyApp';
> use HTTP::Request;
>
> my $req = HTTP::Request->new(
>   'POST',
>   '/foo',
>   [
>       Content_Type => 'text/plain'
>   ],
>   "hello world",
>   );

It's Content-type => ...

spacer
Profile | Posts (16)
Home > People > Moritz Onken