Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Google App Engine

You're reading from   Mastering Google App Engine Build robust and highly scalable web applications with Google App Engine

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781784396671
Length 368 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

The query API

Now that we understand how queries work under the hood, along with its their limitations and workarounds, it is time to learn more about the query API. As we have already seen briefly, there are two interfaces through which you can query your data. One is the object-oriented way where you can create query objects, call methods on them to tailor them according to your needs, and fetch results. The other is the SQL-like interface, which only allows you to read data. Thus, the only available statement is SELECT. This language is called GQL. Whatever queries you issue in GQL are translated into its equivalent object-oriented API.

Previously, the datastore API was available under the db package and was not very intuitive. Besides this, there was no caching available. So, every query that you issued would hit the underlying datastore, thus counting towards the quota limits. You could use the Memcahce API to manually store the fetched results on your own and invalidate the cache.

Then...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime