List_name Email
========== ==================
andrew adam@gmail.com
adam adam@gmail.com
smith adam@gmail.com
john adam@gmail.com
andrew andrew@gmail.com
adam andrew@gmail.com
smith andrew@gmail.com
john andrew@gmail.com
andrew john@gmail.com
adam john@gmail.com
smith john@gmail.com
john john@gmail.com
andrew smith@gmail.com
adam smith@gmail.com
smith smith@gmail.com
john smith@gmail.com
In the above table email_ids are repeated, I want to display all emails in the above table with out repetition.
Here there is only 4 emails, I want to retrieve only 4 rows from table is this possible using GQL query in goolge app engine.
And one more thing i want to use paging to display emails (10 emails for a page),
i.e., if there is 15 emails in table, need to display 10 emails in 1ST page and 5 emails in 2nd page.
Paging is very important!
If you’re accustomed to working with a relational database, Google App Engine can seem unusual. The query syntax is very limited. Instead of putting everything into a simple table and writing complicated queries, you have to put everything into complicated data structures and then write simple queries.
You should get used to creating several different Entities, usually one for each primary key for a possible query. In this case, you should have an Entity UniqueEmailAddress or something like that. Every time you add a record, get the UniqueEmailAddress with that name and update it, or create it if it doesn’t exist. Then you can just query on UniqueEmailAddress directly.