*** tpb has joined #melange | 00:00 | |
*** asmeurer has quit IRC | 00:06 | |
*** asmeurer_ has joined #melange | 00:47 | |
*** asmeurer_ has quit IRC | 01:09 | |
*** BlankVerse has joined #melange | 01:25 | |
*** asmeurer__ has joined #melange | 01:31 | |
*** asmeurer__ has quit IRC | 01:38 | |
*** BlankVerse has quit IRC | 01:55 | |
*** BlankVerse has joined #melange | 02:49 | |
*** madrazr has joined #melange | 03:08 | |
*** ChanServ sets mode: +o madrazr | 03:08 | |
*** madrazr has quit IRC | 07:52 | |
*** robbyoconnor has joined #melange | 08:13 | |
*** r0bby_ has joined #melange | 08:14 | |
*** robbyoconnor has quit IRC | 08:18 | |
*** r0bby_ is now known as robbyoconnor | 08:30 | |
*** robbyoconnor has quit IRC | 08:32 | |
*** robbyoconnor has joined #melange | 08:33 | |
*** dhaun has joined #melange | 11:10 | |
*** asmeurer_ has joined #melange | 12:56 | |
*** Arc has quit IRC | 15:36 | |
*** Arc has joined #melange | 15:36 | |
*** haseeb has joined #melange | 17:09 | |
*** RedAdmiral has joined #melange | 17:53 | |
*** RedAdmiral has quit IRC | 18:40 | |
*** asmeurer_ has quit IRC | 18:55 | |
*** madrazr has joined #melange | 19:01 | |
*** ChanServ sets mode: +o madrazr | 19:01 | |
madrazr | betelgeuse_: Hi | 19:01 |
---|---|---|
*** sandroandrade has joined #melange | 19:02 | |
*** sandroandrade has quit IRC | 19:03 | |
*** RedAdmiral has joined #melange | 19:26 | |
*** sandroandrade has joined #melange | 19:29 | |
betelgeuse_ | hey , madrazr | 20:12 |
madrazr | betelgeuse_: do you have time now? | 20:12 |
betelgeuse_ | yes | 20:12 |
madrazr | betelgeuse_: so, yeah, there are two approaches I can think about for now | 20:15 |
madrazr | betelgeuse_: depends on how adventurous you want to be | 20:15 |
madrazr | betelgeuse_: and also your time | 20:16 |
betelgeuse_ | I have time and yeah i guess i will try to implement both the ways . | 20:16 |
madrazr | betelgeuse_: I would first get done the easy way to first show something works | 20:16 |
betelgeuse_ | starting with the easy way . | 20:16 |
madrazr | and then take the more adventurous path if you are still interested | 20:16 |
madrazr | betelgeuse_: cool! | 20:16 |
madrazr | betelgeuse_: the easiest way to do is to put a drop box | 20:16 |
madrazr | betelgeuse_: which has "Email ID", "Link ID", "Name" etc as the options | 20:17 |
madrazr | betelgeuse_: and a text box for the search input | 20:17 |
madrazr | betelgeuse_: then while querying the datastore, use that property as the filter | 20:17 |
betelgeuse_ | ok , will do | 20:17 |
madrazr | betelgeuse_: Ok | 20:17 |
madrazr | betelgeuse_: how long do you think it is going to take? | 20:17 |
betelgeuse_ | i have to see , depends , because i am not that good with the models and database stuff . | 20:18 |
betelgeuse_ | how long should it take normally ? | 20:18 |
madrazr | betelgeuse_: about a day's work considering what you said | 20:19 |
madrazr | betelgeuse_: a day == 8 hours | 20:19 |
madrazr | betelgeuse_: don't spend too much time reading docs etc, at least for this | 20:20 |
betelgeuse_ | ok , i will try it and will let you know tomorrow ? | 20:20 |
betelgeuse_ | 20:20 | |
madrazr | betelgeuse_: there is a lot of code in Melange which does query filtering | 20:20 |
madrazr | betelgeuse_: sure | 20:20 |
betelgeuse_ | sure . | 20:20 |
betelgeuse_ | what does query filtering mean ? | 20:21 |
madrazr | betelgeuse_: keep me posted, preferably via email. I may not be physically here all the time even if I am logged in | 20:21 |
betelgeuse_ | sure . | 20:21 |
madrazr | betelgeuse_: let us say you have a model called Profile | 20:21 |
madrazr | betelgeuse_: now you want to fetch all the entities of the model profile | 20:21 |
madrazr | betelgeuse_: for this you will have to query the datastore right? | 20:22 |
betelgeuse_ | yes . | 20:22 |
madrazr | betelgeuse_: but now let us say, you want only those profile entities that has the first name "John" | 20:22 |
betelgeuse_ | ok , | 20:23 |
*** robbyoconnor has quit IRC | 20:23 | |
madrazr | betelgeuse_: so in Appengine jargon, this thing of getting only those entities that match the required property value is called filtering | 20:23 |
betelgeuse_ | ok , cool . | 20:24 |
madrazr | betelgeuse_: just as an example | 20:24 |
madrazr | assume your model class is called XYZ | 20:24 |
madrazr | and it has a property called "name" | 20:24 |
madrazr | betelgeuse_: if you want to fetch only those entities with name John, you would do | 20:25 |
betelgeuse_ | ok, | 20:25 |
madrazr | q = XYZ.all() | 20:25 |
madrazr | gives you the base query | 20:25 |
madrazr | q.filter('name', 'John') | 20:25 |
madrazr | gives you the filtered query | 20:25 |
madrazr | now you can fetch all the entities that match your query by doing | 20:26 |
madrazr | entities = q.fetch(1000) | 20:26 |
madrazr | NOTE, 1000 is the maximum number of entities you can fetch per query | 20:26 |
madrazr | betelgeuse_: makes sense? | 20:26 |
betelgeuse_ | will try , thanks , yes . | 20:26 |
madrazr | betelgeuse_: Ok | 20:27 |
madrazr | NP | 20:27 |
madrazr | betelgeuse_: brb | 20:27 |
betelgeuse_ | ok . | 20:37 |
*** RedAdmiral has quit IRC | 21:09 | |
*** dhaun has quit IRC | 23:21 | |
*** sandroandrade has quit IRC | 23:21 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!