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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:21:46+00:00 2026-06-07T11:21:46+00:00

Im using JPA in Google App Engine. I have a profile entity with many

  • 0

Im using JPA in Google App Engine.

I have a profile entity with many properties, (e.g. from name to hobbies). I allow users to search for the profile entity. Properties for searching are optional. If users did not enter a value for a property, it is excluded in the query. So, different combinations of provided properties in searching will have different query as well.

The condition in the query is dynamic, it depends on the provided properties while a user is searching. I have something below for all the properties.

if( ! profile.getLocation().equals("") )
    condition += " AND p.location = '" + profile.getLocation() + "' ";

The problem is that it requires a lot of indexing. What will be the other approach on this?

I think it will require hundreds of index for the different combination of properties provided.

Thanks.

  • 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-07T11:21:48+00:00Added an answer on June 7, 2026 at 11:21 am

    You have to use an third part server like Solr or using the new (but experimental) Search API

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

Sidebar

Related Questions

I'm using JPA with with Google App Engine. Let's say I have a very
I'm trying to update an entity using JPA with Google App Engine. I start
I am using Google App Engine, spring mvc and spring jpa dao. In my
I'm using JPA (not JDO) on Google App Engine and this is a typical
Using JPA and Hibernate I have an entity class @Entity @Table(name = "ROLES") public
I'm using Jpa with GAE. I have an Entity with collection of sub Entity
I'm trying to learn about grails with Google App Engine and JPA by following
i have a strange situation: I'm using jpa/hibernate to get rows from a mySql
I plan on using Google App Engine to communicate with an Android App. I
Using JPA, I have a list of entries from my database : User(id, firstname,

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.