2fe3f848b9 
								
							
								 
							
						 
						
							
							
								
								Remove uses of events.content  
							
							
							
						 
						
							2018-03-29 23:17:12 +01:00  
				
					
						
							
							
								 
						
							
							
								fa72803490 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' of github.com:matrix-org/synapse into develop  
							
							
							
						 
						
							2018-03-19 11:41:01 +00:00  
				
					
						
							
							
								 
						
							
							
								926ba76e23 
								
							
								 
							
						 
						
							
							
								
								Replace ujson with simplejson  
							
							
							
						 
						
							2018-03-15 23:43:31 +00:00  
				
					
						
							
							
								 
						
							
							
								5978dccff0 
								
							
								 
							
						 
						
							
							
								
								remove overzealous exception handling  
							
							
							
						 
						
							2018-02-14 15:54:09 +00:00  
				
					
						
							
							
								 
						
							
							
								ddb6a79b68 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'matthew/gin_work_mem' into matthew/hit_the_gin  
							
							
							
						 
						
							2018-02-13 16:45:36 +00:00  
				
					
						
							
							
								 
						
							
							
								4a6d551704 
								
							
								 
							
						 
						
							
							
								
								GIN reindex: Fix syntax errors, improve exception handling  
							
							
							
						 
						
							2018-02-13 16:44:46 +00:00  
				
					
						
							
							
								 
						
							
							
								a9b712e9dc 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into matthew/gin_work_mem  
							
							
							
						 
						
							2018-02-13 12:16:01 +00:00  
				
					
						
							
							
								 
						
							
							
								3c7b480ba3 
								
							
								 
							
						 
						
							
							
								
								Factor out common code for search insert  
							
							... 
							
							
							
							we can reuse the same code as is used for event insert, for doing the
background index population. 
							
						 
						
							2018-02-05 16:12:14 +00:00  
				
					
						
							
							
								 
						
							
							
								c46e75d3d8 
								
							
								 
							
						 
						
							
							
								
								Move store_event_search_txn to SearchStore  
							
							... 
							
							
							
							... as a precursor to making event storing and doing the bg update share some
code. 
							
						 
						
							2018-02-05 15:43:22 +00:00  
				
					
						
							
							
								 
						
							
							
								80b8a28100 
								
							
								 
							
						 
						
							
							
								
								Factor out common code for search insert  
							
							... 
							
							
							
							we can reuse the same code as is used for event insert, for doing the
background index population. 
							
						 
						
							2018-02-04 00:23:06 +00:00  
				
					
						
							
							
								 
						
							
							
								bd25f9cf36 
								
							
								 
							
						 
						
							
							
								
								Clean up work_mem handling  
							
							... 
							
							
							
							Add some comments and improve exception handling when twiddling work_mem for
the search update 
							
						 
						
							2018-02-03 23:05:41 +00:00  
				
					
						
							
							
								 
						
							
							
								4eeae7ad65 
								
							
								 
							
						 
						
							
							
								
								Move store_event_search_txn to SearchStore  
							
							... 
							
							
							
							... as a precursor to making event storing and doing the bg update share some
code. 
							
						 
						
							2018-02-03 22:59:45 +00:00  
				
					
						
							
							
								 
						
							
							
								6b02fc80d1 
								
							
								 
							
						 
						
							
							
								
								Reinstate event_search_postgres_gist handler  
							
							... 
							
							
							
							People may have queued updates for this, so we can't just delete it. 
							
						 
						
							2018-02-02 14:32:51 +00:00  
				
					
						
							
							
								 
						
							
							
								174eacc8ba 
								
							
								 
							
						 
						
							
							
								
								oops  
							
							
							
						 
						
							2018-01-09 18:14:32 +00:00  
				
					
						
							
							
								 
						
							
							
								a66f489678 
								
							
								 
							
						 
						
							
							
								
								fix GIST->GIN switch  
							
							
							
						 
						
							2018-01-09 16:55:51 +00:00  
				
					
						
							
							
								 
						
							
							
								e79db0a673 
								
							
								 
							
						 
						
							
							
								
								switch back from GIST to GIN indexes  
							
							
							
						 
						
							2018-01-09 16:37:48 +00:00  
				
					
						
							
							
								 
						
							
							
								19f9227643 
								
							
								 
							
						 
						
							
							
								
								avoid 80s GIN inserts by tweaking work_mem  
							
							... 
							
							
							
							see https://github.com/matrix-org/synapse/issues/2753  for details 
							
						 
						
							2018-01-09 16:25:04 +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  
				
					
						
							
							
								 
						
							
							
								eaaabc6c4f 
								
							
								 
							
						 
						
							
							
								
								replace 'except:' with 'except Exception:'  
							
							... 
							
							
							
							what could possibly go wrong 
							
						 
						
							2017-10-23 15:52:32 +01:00  
				
					
						
							
							
								 
						
							
							
								64c6566980 
								
							
								 
							
						 
						
							
							
								
								Remove spurious comment  
							
							
							
						 
						
							2016-11-03 15:04:32 +00:00  
				
					
						
							
							
								 
						
							
							
								8fd4d9129f 
								
							
								 
							
						 
						
							
							
								
								Replace postgres GIN with GIST  
							
							... 
							
							
							
							This is because GIN can be slow to write too, especially when the table
gets large. 
							
						 
						
							2016-11-03 15:00:03 +00:00  
				
					
						
							
							
								 
						
							
							
								05e01f21d7 
								
							
								 
							
						 
						
							
							
								
								Remove event fetching from DB threads  
							
							
							
						 
						
							2016-06-03 17:22:13 +01:00  
				
					
						
							
							
								 
						
							
							
								183cacac90 
								
							
								 
							
						 
						
							
							
								
								Simplify query and handle finishing correctly  
							
							
							
						 
						
							2016-04-22 10:01:57 +01:00  
				
					
						
							
							
								 
						
							
							
								ae571810f2 
								
							
								 
							
						 
						
							
							
								
								Order NULLs first  
							
							
							
						 
						
							2016-04-21 18:14:18 +01:00  
				
					
						
							
							
								 
						
							
							
								3ddbb1687c 
								
							
								 
							
						 
						
							
							
								
								Fix query  
							
							
							
						 
						
							2016-04-21 18:02:36 +01:00  
				
					
						
							
							
								 
						
							
							
								8fae3d7b1e 
								
							
								 
							
						 
						
							
							
								
								Use special UPDATE syntax  
							
							
							
						 
						
							2016-04-21 18:01:49 +01:00  
				
					
						
							
							
								 
						
							
							
								b57dcb4b51 
								
							
								 
							
						 
						
							
							
								
								Typo  
							
							
							
						 
						
							2016-04-21 17:49:00 +01:00  
				
					
						
							
							
								 
						
							
							
								26db18bc90 
								
							
								 
							
						 
						
							
							
								
								Need to do _background_update_progress_txn in actual transaction  
							
							
							
						 
						
							2016-04-21 17:45:56 +01:00  
				
					
						
							
							
								 
						
							
							
								e395eb1108 
								
							
								 
							
						 
						
							
							
								
								Update progress when creating index  
							
							
							
						 
						
							2016-04-21 17:39:24 +01:00  
				
					
						
							
							
								 
						
							
							
								3b0fa77f50 
								
							
								 
							
						 
						
							
							
								
								Fix SQL statement  
							
							
							
						 
						
							2016-04-21 17:37:42 +01:00  
				
					
						
							
							
								 
						
							
							
								129e403487 
								
							
								 
							
						 
						
							
							
								
								Create index must be on a conn  
							
							
							
						 
						
							2016-04-21 17:35:51 +01:00  
				
					
						
							
							
								 
						
							
							
								51bb339ab2 
								
							
								 
							
						 
						
							
							
								
								Create index concurrently  
							
							
							
						 
						
							2016-04-21 17:16:11 +01:00  
				
					
						
							
							
								 
						
							
							
								c877f0f034 
								
							
								 
							
						 
						
							
							
								
								Optimise event_search in postgres  
							
							
							
						 
						
							2016-04-21 16:56:14 +01:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								a64f9bbfe0 
								
							
								 
							
						 
						
							
							
								
								Fix 500 error when back-paginating search results  
							
							... 
							
							
							
							We were mistakenly adding pagination clauses to the count query, which then
failed because the count query doesn't join to the events table. 
							
						 
						
							2015-12-17 12:50:46 +00:00  
				
					
						
							
							
								 
						
							
							
								15e9885197 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'release-v0.12.0' into develop  
							
							
							
						 
						
							2015-12-14 14:46:55 +00:00  
				
					
						
							
							
								 
						
							
							
								98dfa7d24f 
								
							
								 
							
						 
						
							
							
								
								Skip events that where the body, name or topic isn't a string when back populating the FTS index  
							
							
							
						 
						
							2015-12-14 13:55:46 +00:00  
				
					
						
							
							
								 
						
							
							
								bfc52a2342 
								
							
								 
							
						 
						
							
							
								
								Fix typo in sql for full text search on sqlite3  
							
							
							
						 
						
							2015-12-14 11:38:11 +00:00  
				
					
						
							
							
								 
						
							
							
								d9a5c56930 
								
							
								 
							
						 
						
							
							
								
								Include approximate count of search results  
							
							
							
						 
						
							2015-12-11 11:40:23 +00:00  
				
					
						
							
							
								 
						
							
							
								51fb590c0e 
								
							
								 
							
						 
						
							
							
								
								Use more efficient query form  
							
							
							
						 
						
							2015-12-11 11:12:57 +00:00  
				
					
						
							
							
								 
						
							
							
								976cb5aaa8 
								
							
								 
							
						 
						
							
							
								
								Throw if unrecognized DB type  
							
							
							
						 
						
							2015-12-02 13:50:43 +00:00  
				
					
						
							
							
								 
						
							
							
								b9acef5301 
								
							
								 
							
						 
						
							
							
								
								Fix so highlight matching works again  
							
							
							
						 
						
							2015-12-02 13:28:13 +00:00  
				
					
						
							
							
								 
						
							
							
								7dd6e5efca 
								
							
								 
							
						 
						
							
							
								
								Remove deuplication. Add comment about regex.  
							
							
							
						 
						
							2015-12-02 13:09:37 +00:00  
				
					
						
							
							
								 
						
							
							
								477da77b46 
								
							
								 
							
						 
						
							
							
								
								Search: Add prefix matching support  
							
							
							
						 
						
							2015-12-02 11:40:52 +00:00  
				
					
						
							
							
								 
						
							
							
								4dcaa42b6d 
								
							
								 
							
						 
						
							
							
								
								Allow paginating search ordered by recents  
							
							
							
						 
						
							2015-11-30 17:45:31 +00:00  
				
					
						
							
							
								 
						
							
							
								76936f43ae 
								
							
								 
							
						 
						
							
							
								
								Return words to highlight in search results  
							
							
							
						 
						
							2015-11-27 16:40:42 +00:00  
				
					
						
							
							
								 
						
							
							
								3de46c7755 
								
							
								 
							
						 
						
							
							
								
								Trailing whitespace  
							
							
							
						 
						
							2015-11-12 15:36:43 +00:00  
				
					
						
							
							
								 
						
							
							
								8fd8e72cec 
								
							
								 
							
						 
						
							
							
								
								Expand comment  
							
							
							
						 
						
							2015-11-12 15:33:47 +00:00  
				
					
						
							
							
								 
						
							
							
								764e79d051 
								
							
								 
							
						 
						
							
							
								
								Comment  
							
							
							
						 
						
							2015-11-12 15:19:56 +00:00  
				
					
						
							
							
								 
						
							
							
								320408ef47 
								
							
								 
							
						 
						
							
							
								
								Fix SQL syntax  
							
							
							
						 
						
							2015-11-12 15:09:45 +00:00