Add disclaimer about yield order to get_things_by_id.
This commit is contained in:
		
							parent
							
								
									30c9efc043
								
							
						
					
					
						commit
						cfb48a8d11
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -292,6 +292,10 @@ class PDBCacheManagerMixin: | ||||||
|         and which ones need to be selected from the db. |         and which ones need to be selected from the db. | ||||||
|         This is better than calling get_thing_by_id in a loop because we can |         This is better than calling get_thing_by_id in a loop because we can | ||||||
|         use a single SQL select to get batches of up to 999 items. |         use a single SQL select to get batches of up to 999 items. | ||||||
|  | 
 | ||||||
|  |         Note: The order of the output will most likely not match the order of | ||||||
|  |         the input, because we first pull items from the cache before requesting | ||||||
|  |         the rest from the database. | ||||||
|         ''' |         ''' | ||||||
|         thing_map = self._THING_CLASSES[thing_type] |         thing_map = self._THING_CLASSES[thing_type] | ||||||
|         thing_class = thing_map['class'] |         thing_class = thing_map['class'] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue