Amber Brown
							
						 
						
							 
							
							
							
								
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							 
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
								
								
							
							
								
							
								3d33eef6fc 
								
									
								
							
								 
							
						 
						
							
							
								
								Store state groups separately from events ( #2784 )  
							
							 
							
							... 
							
							
							
							* Split state group persist into seperate storage func
* Add per database engine code for state group id gen
* Move store_state_group to StateReadStore
This allows other workers to use it, and so resolve state.
* Hook up store_state_group
* Fix tests
* Rename _store_mult_state_groups_txn
* Rename StateGroupReadStore
* Remove redundant _have_persisted_state_group_txn
* Update comments
* Comment compute_event_context
* Set start val for state_group_id_seq
... otherwise we try to recreate old state groups
* Update comments
* Don't store state for outliers
* Update comment
* Update docstring as state groups are ints 
							
						 
						
							2018-02-06 14:31:24 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								d5fb561709 
								
							
								 
							
						 
						
							
							
								
								Optionally make committing to postgres asynchronous.  
							
							 
							
							... 
							
							
							
							Useful when running tests when you don't care whether the server
will lose data that it claims that it has committed. 
							
						 
						
							2016-06-20 17:53:38 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								8aab9d87fa 
								
							
								 
							
						 
						
							
							
								
								Don't require config to create database  
							
							 
							
							
							
						 
						
							2016-04-06 14:15:45 +01:00  
						
					 
				
					
						
							
							
								 
								Daniel Wagner-Hall
							
						 
						
							 
							
							
							
								
							
								763360594d 
								
							
								 
							
						 
						
							
							
								
								Mark AS users with their AS's ID  
							
							 
							
							
							
						 
						
							2016-02-11 17:26:42 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Wagner-Hall
							
						 
						
							 
							
							
							
								
							
								d83d004ccd 
								
							
								 
							
						 
						
							
							
								
								Fix flake8 warnings for new flake8  
							
							 
							
							
							
						 
						
							2016-02-02 17:18:50 +00:00  
						
					 
				
					
						
							
							
								 
								Matthew Hodgson
							
						 
						
							 
							
							
							
								
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							 
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								0c36098c1f 
								
							
								 
							
						 
						
							
							
								
								Implement rank function for SQLite FTS  
							
							 
							
							
							
						 
						
							2015-10-23 13:23:48 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								17c80c8a3d 
								
							
								 
							
						 
						
							
							
								
								rename schema_prepare to prepare_database  
							
							 
							
							
							
						 
						
							2015-10-13 13:56:22 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								ec398af41c 
								
							
								 
							
						 
						
							
							
								
								Expose error more nicely  
							
							 
							
							
							
						 
						
							2015-10-13 11:43:43 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								40b6a5aad1 
								
							
								 
							
						 
						
							
							
								
								Split out the schema preparation and update logic into its own module  
							
							 
							
							
							
						 
						
							2015-10-13 11:38:48 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								1d566edb81 
								
							
								 
							
						 
						
							
							
								
								Remove race condition  
							
							 
							
							
							
						 
						
							2015-05-14 16:54:35 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								1692dc019d 
								
							
								 
							
						 
						
							
							
								
								Don't call 'encode_parameter' no-op  
							
							 
							
							
							
						 
						
							2015-05-05 15:00:30 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								204132a998 
								
							
								 
							
						 
						
							
							
								
								Check that postgres database has correct charset set  
							
							 
							
							
							
						 
						
							2015-04-29 11:42:28 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								2732be83d9 
								
							
								 
							
						 
						
							
							
								
								Shuffle operations so that locking upsert happens last in the txn. This ensures the lock is held for the least amount of time possible.  
							
							 
							
							
							
						 
						
							2015-04-27 13:22:30 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								e4c4664d73 
								
							
								 
							
						 
						
							
							
								
								Handle the fact that postgres databases can be restarted from under us  
							
							 
							
							
							
						 
						
							2015-04-27 12:40:49 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								e1c0970c11 
								
							
								 
							
						 
						
							
							
								
								PEP8  
							
							 
							
							
							
						 
						
							2015-04-16 11:18:45 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								b8092fbc82 
								
							
								 
							
						 
						
							
							
								
								Go back to storing JSON in TEXT  
							
							 
							
							
							
						 
						
							2015-04-16 11:17:52 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								7ed2ec3061 
								
							
								 
							
						 
						
							
							
								
								Handle the fact that in sqlite binary data might be stored as unicode or bytes  
							
							 
							
							
							
						 
						
							2015-04-10 13:41:54 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								49d6aa1394 
								
							
								 
							
						 
						
							
							
								
								Retry on deadlock  
							
							 
							
							
							
						 
						
							2015-04-07 15:28:37 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								779f7b0f44 
								
							
								 
							
						 
						
							
							
								
								Fix unicode support  
							
							 
							
							
							
						 
						
							2015-04-02 10:06:22 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								9236136f3a 
								
							
								 
							
						 
						
							
							
								
								Make work in both Maria and SQLite. Fix tests  
							
							 
							
							
							
						 
						
							2015-04-01 14:12:33 +01:00