Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5954121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:55:32+00:00 2026-05-22T17:55:32+00:00

I have a model with entities which includes parent keys. I want to know

  • 0

I have a model with entities which includes parent keys. I want to know if it’s possible to make a specific query to obtain only the keys of the parents given some attribute restrictions on the children entities.

I’ll try to give an example. Suppose that we have names of persons, their parent (just the key), and their favorite color:

| Name    | Parent | Color  |
-----------------------------
| Robert  | Albert | Yellow |
| Rupert  | Albert | Yellow |
| Gilbert | Albert | Green  |
| Q-bert  | Rupert | Yellow |

I want a query to obtain the following list without repeated elements as a result, when querying for the color Yellow: < Albert, Rupert >.

Notice that I’m not interested in the children, just the keys of the parents. Note also that although I could group the repeated keys in a Set<Key> that would break the paging of my application.

I know there are no distinct queries, but search engines usually have a “clustering” feature to accomplish this task. And I believe that the underlying organization of the Datastore is like the organization of a full-text search engine. That’s why am asking.

BTW, I’m using the low-level Java Datastore API.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:55:33+00:00Added an answer on May 22, 2026 at 5:55 pm

    The GAE Datastore does not have this functionality. (In general, the datastore does not do any manipulation of the data it returns – the only logic involved is in selecting what items to return.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have Model.objects.all() I want to get only one object for any content_object=foo,
I have a model which includes NODES, and RELATIONSHIPS (that tie the nodes together,
Here's my situation.. Suppose you have the following model entities, which represent single tables
I have a codefirst entity model which has two entities, City and Locality. City
I have a data model which has two entities in a relationship of one
I have a model that has an arbitrary number of children entities. For simplicity
In GAE, I have a model called Foo, with existing entities, and attempt to
In my Core Data model I have two entities: List and Patient. List has
I have model Foo which has field bar. The bar field should be unique,
I want to model the following scenario in the database: I have a Package,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.