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

  • Home
  • SEARCH
  • 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 8806039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:01:06+00:00 2026-06-14T02:01:06+00:00

I am working on my first GAE project using java and the datastore. And

  • 0

I am working on my first GAE project using java and the datastore. And this is my first try with noSQL database. Like a lot of people i have problems understanding the right model to use. So far I’ve figured out two models and I need help to choose the right one.

All the data is represented in two classes User.class and Word.class.

  • User: couple of string with user data (username, email…..)

  • Word: two strings

Which is better :

  1. Search in 10 000 000 entities for the 100 i need. For instance every entity Word have a string property owner and i query (owner = ‘John’).

  2. In User.class i add property List<Word> and method getWords() that returns the list of words. So i query in 1000 users for the one i need and then call method like getWords() that returns List<Word> with that 100 i need.

Which one uses less resources ? Or am i going the wrong way with this ?

  • 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-06-14T02:01:07+00:00Added an answer on June 14, 2026 at 2:01 am

    The answer is to use appstats and you can find out:

    AppStats

    To keep your application fast, you need to know:

    Is your application making unnecessay RPC calls? Should it be caching
    data instead of making repeated RPC calls to get the same data? Will
    your application perform better if multiple requests are executed in
    parallel rather than serially?

    Run some tests, try it both ways and see what appstats says.

    But I’d say that your option 2) is better simply because you don’t need to search millions of entities. But who knows for sure? The trouble is that “resources” are a dozen different things in app engine – CPU, datastore reads, datastore writes etc etc etc.

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

Sidebar

Related Questions

I'm working on an intranet django project (not using GAE) for a company that
I am working first time in SugarCRM I have really no idea regarding this.
I'm working on my first GAE project and I'm having some trouble getting custom
This is my first time working with GAE and I'm trying to get CDI
I am new to wpf and i am working on first application i have
Working on my first Rails project, I used Ryan Bates' Nifty-Generators to create the
I working on my first ASP.net MVC project and and i got some problems
I'm working on my first programming assignment for Java and I had another question.
I'm working on my first game and I have a little over 20 classes.
i am working on my first Ajax Project and i cannot find a solution

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.