49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								6350bf925e 
								
									
								
							
								 
							
						 
						
							
							
								
								Attempt to be more performant on PyPy ( #3462 )  
							
							
							
						 
						
							2018-06-28 14:49:57 +01:00  
				
					
						
							
							
								 
						
							
							
								926ba76e23 
								
							
								 
							
						 
						
							
							
								
								Replace ujson with simplejson  
							
							
							
						 
						
							2018-03-15 23:43:31 +00:00  
				
					
						
							
							
								 
						
							
							
								6cfee09be9 
								
							
								 
							
						 
						
							
							
								
								Make __init__ consitstent across Store heirarchy  
							
							... 
							
							
							
							Add db_conn parameters to the `__init__` methods of the *Store classes, so that
they are all consistent, which makes the multiple inheritance work correctly
(and so that we can later extract mixins which can be used in the slavedstores) 
							
						 
						
							2017-11-13 10:46:07 +00:00  
				
					
						
							
							
								 
						
							
							
								9f26d3b75b 
								
							
								 
							
						 
						
							
							
								
								Deduplicate new deviceinbox rows for replication  
							
							
							
						 
						
							2017-04-04 16:21:21 +01:00  
				
					
						
							
							
								 
						
							
							
								00957d1aa4 
								
							
								 
							
						 
						
							
							
								
								User Cursor.__iter__ instead of fetchall  
							
							... 
							
							
							
							This prevents unnecessary construction of lists 
							
						 
						
							2017-03-23 17:53:49 +00:00  
				
					
						
							
							
								 
						
							
							
								29ed09e80a 
								
							
								 
							
						 
						
							
							
								
								Fix assertion to stop transaction queue getting wedged  
							
							... 
							
							
							
							... and update some docstrings to correctly reflect the types being used.
get_new_device_msgs_for_remote can return a long under some circumstances,
which was being stored in last_device_list_stream_id_by_dest, and was then
upsetting things on the next loop. 
							
						 
						
							2017-03-15 12:16:55 +00:00  
				
					
						
							
							
								 
						
							
							
								64d62e41b8 
								
							
								 
							
						 
						
							
							
								
								Noop repated delete device inbox calls from /sync  
							
							
							
						 
						
							2017-03-10 10:36:43 +00:00  
				
					
						
							
							
								 
						
							
							
								ab655dca33 
								
							
								 
							
						 
						
							
							
								
								Explicitly close the cursor  
							
							
							
						 
						
							2017-01-10 15:15:25 +00:00  
				
					
						
							
							
								 
						
							
							
								5a32e9273e 
								
							
								 
							
						 
						
							
							
								
								Don't disable autocommit  
							
							
							
						 
						
							2017-01-10 15:11:27 +00:00  
				
					
						
							
							
								 
						
							
							
								caddadfc5a 
								
							
								 
							
						 
						
							
							
								
								Change device_inbox stream index to include user  
							
							... 
							
							
							
							This makes fetching the nost recently changed users much tricker, and
brings it in line with e.g. presence_stream indices. 
							
						 
						
							2017-01-10 15:04:57 +00:00  
				
					
						
							
							
								 
						
							
							
								edc6a1e4f9 
								
							
								 
							
						 
						
							
							
								
								Add some logging for syncing to_device events  
							
							... 
							
							
							
							Attempt to track down the loss of to_device events
(https://github.com/vector-im/riot-web/issues/2711  etc). 
							
						 
						
							2016-12-15 18:16:10 +00:00  
				
					
						
							
							
								 
						
							
							
								f8ee66250a 
								
							
								 
							
						 
						
							
							
								
								Handle sending events and device messages over federation  
							
							
							
						 
						
							2016-11-17 15:48:04 +00:00  
				
					
						
							
							
								 
						
							
							
								a232e06100 
								
							
								 
							
						 
						
							
							
								
								Fix direct to device messages recieved over federation to notify sync  
							
							
							
						 
						
							2016-09-12 12:30:46 +01:00  
				
					
						
							
							
								 
						
							
							
								6a6cbfcf1e 
								
							
								 
							
						 
						
							
							
								
								Track the max_stream_device_id in a separate table, since we delete from the inbox table  
							
							
							
						 
						
							2016-09-09 11:48:23 +01:00  
				
					
						
							
							
								 
						
							
							
								a1c8f268e5 
								
							
								 
							
						 
						
							
							
								
								Support wildcard device_ids for direct to device messages  
							
							
							
						 
						
							2016-09-08 15:13:05 +01:00  
				
					
						
							
							
								 
						
							
							
								31a07d2335 
								
							
								 
							
						 
						
							
							
								
								Add stream change caches for device messages  
							
							
							
						 
						
							2016-09-07 15:27:07 +01:00  
				
					
						
							
							
								 
						
							
							
								7d893beebe 
								
							
								 
							
						 
						
							
							
								
								Comment the add_messages storage functions  
							
							
							
						 
						
							2016-09-07 12:03:37 +01:00  
				
					
						
							
							
								 
						
							
							
								d4a35ada28 
								
							
								 
							
						 
						
							
							
								
								Send device messages over federation  
							
							
							
						 
						
							2016-09-06 18:16:20 +01:00  
				
					
						
							
							
								 
						
							
							
								e020834e4f 
								
							
								 
							
						 
						
							
							
								
								Add storage methods for federated device messages  
							
							
							
						 
						
							2016-09-06 15:12:13 +01:00  
				
					
						
							
							
								 
						
							
							
								f4164edb70 
								
							
								 
							
						 
						
							
							
								
								Move _add_messages_to_device_inbox_txn into a separate method  
							
							
							
						 
						
							2016-09-06 11:26:37 +01:00  
				
					
						
							
							
								 
						
							
							
								65fa37ac5e 
								
							
								 
							
						 
						
							
							
								
								Only return new device messages in /sync  
							
							
							
						 
						
							2016-09-02 15:50:37 +01:00  
				
					
						
							
							
								 
						
							
							
								a662252758 
								
							
								 
							
						 
						
							
							
								
								Return the current stream position from add_messages_to_device_inbox  
							
							
							
						 
						
							2016-08-31 10:42:52 +01:00  
				
					
						
							
							
								 
						
							
							
								1aa3e1d287 
								
							
								 
							
						 
						
							
							
								
								Add a replication stream for direct to device messages  
							
							
							
						 
						
							2016-08-31 10:38:58 +01:00  
				
					
						
							
							
								 
						
							
							
								641efb6a39 
								
							
								 
							
						 
						
							
							
								
								Fix the deduplication of incoming direct-to-device messages  
							
							
							
						 
						
							2016-08-25 18:14:02 +01:00  
				
					
						
							
							
								 
						
							
							
								e993925279 
								
							
								 
							
						 
						
							
							
								
								Add store-and-forward direct-to-device messaging  
							
							
							
						 
						
							2016-08-25 17:35:37 +01:00