On Thu, Oct 22, 2009 at 6:10 PM, qaz216 <[email protected]> wrote:

>
> Posted this to the help forum, but thought I would try here as
> well ...
>
> As there is a 1MB limit on batch requests, I would like to make
> multiple batch requests for all of my Google Base Products.
>
> Looking at the XML, however, simply performing a batch request does
> not clear out the previous inserted batch items.
>
> // insert first batch
> BatchUtils.setBatchId(entry1, id1);
> this.itemFeed.addEntry(entry1);
> // insert more items etc. etc.
>
> // Process first batch
> GoogleBaseFeed result = service.batch(this.batchUrl, this.itemFeed);
>
> // create a new Feed to submit, instead of adding to the already
// processed one.
this.itemFeed = new ItemFeed();


> // Process second batch
> BatchUtils.setBatchId(entry10, id1);
> this.itemFeed.addEntry(entry10);
>
>

> // Process second batch
> GoogleBaseFeed result = service.batch(this.batchUrl, this.itemFeed);
>
> // first batch items are processed as well????
>
> I am using the following code to print out XML from Java API
>
> Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).getParent().getHandlers()
> [0].setLevel(Level.ALL);
> Logger.getLogger(GoogleGDataRequest.class.getName()).setLevel
> (Level.ALL);
> Logger.getLogger(HttpGDataRequest.class.getName()).setLevel
> (Level.ALL);
>
>
> It does not seem right to re-authenticate in-order to clear batch
> queue?
>
> Does anyone have any idea regarding making multiple batch requests and
> having the first requests cleared from the batch feed?
> >
>


-- 
Alex Dovlecel, Google Switzerland GmbH
Company Identifikationsnummer: CH-020.4.028.116-1

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-base-data-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to