|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#5
|
|||||
|
|||||
|
Re: [TBA]: TBATV v4 Development Log
I discovered that App Engine has a feature called "key_names". Instead of having App Engine assign a numeric ID to a Model in the datastore, you can specify a string to use instead. Later, you can call Model.get_by_key_name(key) instead of Model.all().filter('property=', value).get(), which is faster.
We are going to use these for Models with obvious canonical names. For instance, Teams will have key_names like 'frc177', and Events will have key_names like '2010ct'. Matches get key_names like '2010ct_sf2m1'. Since we can guess the key_name for a Model we expect to exist, we can find them faster. Neat. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [TBA]: [TBA] Curie 2006 and soap108.com | jblay | The Blue Alliance | 3 | 21-04-2010 00:25 |
| [TBA]: Kickoff 2009 Liveblogging Site Development | Greg Marra | The Blue Alliance | 23 | 30-12-2008 18:37 |
| [TBA]: h.264 Video Analysis, and Improving TBATV Video Quality | artdutra04 | The Blue Alliance | 5 | 29-09-2008 00:29 |
| [TBA]: API Client Development | Greg Marra | The Blue Alliance | 21 | 04-05-2008 20:06 |
| [TBA] TBA Presents... Soldering and Multimeter Tutorials | Greg Marra | General Forum | 0 | 27-01-2007 20:15 |