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 3351580
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:55:34+00:00 2026-05-18T01:55:34+00:00

I’m building an AppEngine app in Python. For the sake of discussion, imagine I’m

  • 0

I’m building an AppEngine app in Python.

For the sake of discussion, imagine I’m building a Gmail clone. Except with a million short emails per user.

The point is, each user will have a large search index, all to theirself; just like Gmail, each user has a personal “search engine” of their own content.

Now imagine that many of these messages belong to multiple users (e.g. mailing list emails or cc:ing a hundred users). Not all, but some reasonable fraction.

Without prematurely optimizing, what is my best bet to store the data and the indexes?

  • 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-18T01:55:34+00:00Added an answer on May 18, 2026 at 1:55 am

    How about storing a list of User keys in each mail message? That’s assuming that a single message won’t be owned by more than a hundred or so users.

    class User(db.Model):
        "usual properties like name, etc"
    
    class Message(db.Model):
    
        # list of users that have this message
        users = db.ListProperty(db.Key)
    

    If you want an unlimited number of user * message relationships, you could use another table:

    class UserMessage(db.Model):
    
        user = db.ReferenceProperty(User)
        message = db.ReferenceProperty(Message)
    

    here’s a couple of good articles on modeling relationships like these on GAE:

    http://code.google.com/appengine/articles/modeling.html
    http://blog.notdot.net/2010/10/Modeling-relationships-in-App-Engine

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

Sidebar

Related Questions

I am building a web app with google app engine with python as well
I'm building an app on Google App Engine. I'm incredibly new to Python and
I'm building an app where I'm trying to store the user's progress on a
I'm currently building a Python webapp on the Google App Engine and I want
I'm building an app which should allow any user to setup and account using
I'm just starting with Python on Google App Engine building a contact database. What
I am building an App Engine app that uses OAuth to get a user's
Currently I'm building quite a large app with flex4+robotlegs+as3signals+google app engine based on python.
I'm looking to send tweets from a small app I'm building for the appengine,
I'm building my first python app on app-engine and wondering if I should use

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.