I expect this is a very simple problem to solve but... What is the best way to retrieve ALL the addressbook objects contained within an addressbook collection? I've been reading rfc 6352 but it doesn't seem to directly address this. It demonstrates how to retrieve objects based on certain conditions, but not how to retrieve everything. I think that an addressbook-query report must contain a filter element, but I'm not sure how to structure the request so that it returns every object. Could you point me in the right direction? Thanks!
On Saturday, November 10, 2012 8:44:05 PM UTC+1, musonic wrote:
> I expect this is a very simple problem to solve but... What is the best > way to retrieve ALL the addressbook objects contained within an addressbook > collection? I've been reading rfc 6352 but it doesn't seem to directly > address this. It demonstrates how to retrieve objects based on certain > conditions, but not how to retrieve everything. I think that an > addressbook-query report must contain a filter element, but I'm not sure > how to structure the request so that it returns every object. > Could you point me in the right direction? Thanks!
However, how do I retrieve all the urls in the first place?! Again, I can't find anything in rfc 6352 that deals with this. Should I be reading another memo in conjunction?!
Also, when you talk about batches, what would you recommend as the maximum size of batch per request? I'm assuming you don't recommend getting all the data using a calendar-query because of the potential size of the response?
Thanks,
N
On 10 Nov 2012, at 20:46, Evert Pot <evert...@gmail.com> wrote:
> On Saturday, November 10, 2012 8:44:05 PM UTC+1, musonic wrote:
>> I expect this is a very simple problem to solve but... What is the best way to retrieve ALL the addressbook objects contained within an addressbook collection? I've been reading rfc 6352 but it doesn't seem to directly address this. It demonstrates how to retrieve objects based on certain conditions, but not how to retrieve everything. I think that an addressbook-query report must contain a filter element, but I'm not sure how to structure the request so that it returns every object.
>> Could you point me in the right direction? Thanks!
> -- > You received this message because you are subscribed to the Google Groups "SabreDAV Discussion" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/sabredav-discuss/-/T2gn5Wx3ivwJ.
> To post to this group, send email to sabredav-discuss@googlegroups.com.
> To unsubscribe from this group, send email to sabredav-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sabredav-discuss?hl=en.
On Nov 10, 2012, at 11:04 PM, Nicholas Le Breuilly <niclebreui...@gmail.com> wrote:
> Thanks Evert, I was wondering exactly that.
> However, how do I retrieve all the urls in the first place?! Again, I can't find anything in rfc 6352 that deals with this. Should I be reading another memo in conjunction?!
With PROPFIND on the addressbook home.
> Also, when you talk about batches, what would you recommend as the maximum size of batch per request? I'm assuming you don't recommend getting all the data using a calendar-query because of the potential size of the response?
I think OS X addressbook does about 100 fetches per request, but I'm not fully sure.
If you want to know more about how to do syncing, the best think I can recommend is to just see what existing clients are doing.
Am Samstag, 10. November 2012 21:46:35 UTC+1 schrieb Evert Pot:
> First: I would recommend against it. It is better to first get the list of > all urls, and then fetch the vcards in batches with multiget.
I'm interested in that. I was wondering if it is possible to read, write and delete addressbook entries in batches to improve performance. Can you elaborate a bit on how to use multiget?
On Nov 11, 2012, at 2:58 AM, mbiebl <mbi...@gmail.com> wrote:
> Hi,
> Am Samstag, 10. November 2012 21:46:35 UTC+1 schrieb Evert Pot:
> First: I would recommend against it. It is better to first get the list of all urls, and then fetch the vcards in batches with multiget.
> I'm interested in that. I was wondering if it is possible to read, write and delete addressbook entries in batches to improve performance.