Re: [Arsperl-users] Missing parameter in ars_GetListEntry/GetListEntryWithFields
Brought to you by:
jeffmurphy
|
From: Misi M. <mi...@rr...> - 2012-07-16 21:50:44
|
Hi,
Yes, but my goal here is to utilize this feature to reduce the possibility
of timeouts.
I might have 10 million records in a table, and want to retrieve them in
chunks of say 10 000 or 100 000. It is then important to know if I managed
to retrieve everything, or if a server setting prevented me from getting
everything, or if it was exactly 100 000 records that matched my search
criteria.
I still think that we should add the possibility to use this parameter
that exists in the core API.
The question is how to change the ars_GetListEntry calls input/output
interface.
Best Regards - Misi, RRR AB, http://rrr.se
> If you specify 0 and 0, it should return all 333 entries. At that point,
> assuming you are using a hash for your return, it would be a simple matter
> to obtain the number of records using the keys() function in perl. For
> instance, if I were wanting to find the number of entries in your call
> below, I'd set it up this way:
>
> %entries = ars_GetListEntry($c, "User", $q, 0, 0);
> $number_entries = scalar keys %entries;
>
> On Mon, Jul 16, 2012 at 8:08 AM, Misi Mladoniczky <mi...@rr...> wrote:
>
>> Hi,
>>
>> To know all requests were returned in a result list from
>> ARGetListEntry/ARGetListEntryWithFields the numMatches variable needs to
>> be returned. This is available in the C API but is not implemented in
>> the
>> corresponding ARSperl calls.
>>
>> They can easily be implemented I guess, but I need advice on how to best
>> proceed.
>>
>> How should the parameter be specified and returned when calling
>> ars_GetListEntry or ars_GetListEntryWithFields?
>>
>> We would have multiple return values in this case...
>>
>> ars_GetListEntry(ctrl, schema, qualifier,
>> maxRetrieve=0,firstRetrieve=0,...)
>>
>> For example if a search results in 333 entries:
>> %entries = ars_GetListEntry($c, "User", $q, 100, 101);
>> We would get 100 entries returned, but there is no way to tell that
>> there
>> are a total of 333 entries to retrieve.
>>
>> Best Regards - Misi, RRR AB, http://rrr.se
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions
>> will include endpoint security, mobile security and the latest in
>> malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>
>>
>> --
>> Arsperl-users mailing list
>> Ars...@li...
>> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
> --
> Arsperl-users mailing list
> Ars...@li...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
|