The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
26 views

Defining models in GAE

I'm learning to work in GAE. I'm so used to SQL, but transform my way of think the last 20 years to NoSQL is a little hard for me. I have the next simple structure: BOOKS than can have CHAPTERS ...
0
votes
0answers
14 views

Caching and indexing before persisting to DB [closed]

I'm quite in need for ideas for implementing indexing and caching on this code: http://bit.ly/13SiKpW Basically what I did was a proof-of-concept java.util.Map interface to the datastore and that ...
2
votes
2answers
149 views

Getting Country Based on IP - Java

Im using Struts2, Google App Engine. Below is my program for getting the country based on IP of the visitor of the website. In my Struts2 action: HttpServletRequest request = ...
3
votes
2answers
63 views

Refactorize my python code for GET and POST

I'm newbe with Python and GAE, but years of procedural programming. I have this code, but I know that there must be some better solution to avoid retyping code. The first and last section of code are ...
1
vote
2answers
134 views

Aggregation on List - Java

Im using the following technologies: Google App Engine, GAE Datastore, Struts2. Common lang java library were also used. Because of the limitation on aggregation for datastore, im using jagg for ...
1
vote
0answers
167 views

App engine Java: Sum difference two arrays - How to improve performance?

I have a function in App Engine java where I compare two patterns stored in an int array. Below is the code: public static int patternMatch(int [] pattern1, int [] pattern2, int range) { int ...
1
vote
2answers
112 views

Session in Struts2 and Google App Engine

Im using Struts2 running in google app engine. User can use their google and facebook account to login to the site. When a user login, i have: session.put("email", email); When a user log-out, I ...
4
votes
2answers
204 views

Checking if entity exist in Google App Engine Datastore using JPA 1

Below is my method in checking if entity already exist. public boolean isExist(String genreName) throws PersistenceException{ EntityManager em = EMF.get().createEntityManager(); boolean flag ...
1
vote
1answer
69 views

How to verify if value already added to the list and if so, then update the value?

I use 3 lists to store field name, its value and score. If field name is already added to according list, then I just need to update other 2 lists. If it is not there, then I need to add it. I do the ...