{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • BaaS/Usergrid /
avatar image
0
Question by GargiTalukdar · Jul 15, 2016 at 09:38 AM · 198 Views collectionshow tobaas updatelarge

What is the best way to update BaaS?

Hi,

My Question is similar to what have been asked here earlier. We have a similar requirement where we need to perform a bulk update from a json file without the knowledge of the property of an entity being changed. Hence it is difficult to update each entry (60000-80000 entries) by querying each entry.

Updating collection from BaaS using PUT needs to provide the property we want to update and it updates every entity.But we need to restrict the update to specific entries(which can be identified by name/uuid) where any property has changed.

I was hoping that while uploading the data , baas will check if any property of an entity(identified by name) has changed. If so it will update that property. Since it is not the happening, currently we have to delete the entire collection and then again create the collection with updated entries which is taking a lot of time.

Kindly let me know if there is any best way to do this.

Thanks!!!

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
0

Answer by Mike Dunker @Google   · Jul 15, 2016 at 05:01 PM

Hi @GargiTalukdar

There is a modified field that specifies the timestamp of when an element was last modified (milliseconds timestamp). You can find more information about this kind of timestamp at http://www.epochconverter.com/ .

You can conditionally update via a single query using something like this:

curl -v -XPUT "https://example.com/org/app/collection?ql=modified>1467331200000%20and%20uuid=8898d8a9-4aab-11e6-837f-02670c054e35" -H"Content-Type:application/json" -d'{"updateField","value"}'

This will update the field for the specific entity, but only if the entity had changed since July 1st GMT.

Does this solve your problem?

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Deleting entities from collections with cursor 0 Answers

APIBaas Usage Titbits 0 Answers

what is Maximum number of collection can be made in apigee BaaS? 3 Answers

Multiple collections or single one containing everything 1 Answer

Password Reset Server Documentation 0 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges