Erik Johnston
							
						 
						
							 
							
							
							
								
							
								b990b2fce5 
								
							
								 
							
						 
						
							
							
								
								Add per user ratelimiting overrides  
							
							 
							
							
							
						 
						
							2017-05-10 11:05:43 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								00957d1aa4 
								
							
								 
							
						 
						
							
							
								
								User Cursor.__iter__ instead of fetchall  
							
							 
							
							... 
							
							
							
							This prevents unnecessary construction of lists 
							
						 
						
							2017-03-23 17:53:49 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								09cbcb78d3 
								
							
								 
							
						 
						
							
							
								
								Add cache to get_public_room_ids_at_stream_id  
							
							 
							
							
							
						 
						
							2016-12-12 14:41:51 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								631376e2ac 
								
							
								 
							
						 
						
							
							
								
								Notify replication. Use correct network_id  
							
							 
							
							
							
						 
						
							2016-12-12 14:28:15 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								d45c984653 
								
							
								 
							
						 
						
							
							
								
								Docstring  
							
							 
							
							
							
						 
						
							2016-12-12 11:00:27 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								f32fb65552 
								
							
								 
							
						 
						
							
							
								
								Add new API appservice specific public room list  
							
							 
							
							
							
						 
						
							2016-12-06 16:12:27 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								748d8fdc7b 
								
							
								 
							
						 
						
							
							
								
								Reduce DB hits for replication  
							
							 
							
							... 
							
							
							
							Some streams will occaisonally advance their positions without actually
having any new rows to send over federation. Currently this means that
the token will not advance on the workers, leading to them repeatedly
sending a slightly out of date token. This in turns requires the master
to hit the DB to check if there are any new rows, rather than hitting
the no op logic where we check if the given token matches the current
token.
This commit changes the API to always return an entry if the position
for a stream has changed, allowing workers to advance their tokens
correctly. 
							
						 
						
							2016-09-23 16:49:21 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								211786ecd6 
								
							
								 
							
						 
						
							
							
								
								Stream public room changes down replication  
							
							 
							
							
							
						 
						
							2016-09-15 11:47:23 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								4fb65a1091 
								
							
								 
							
						 
						
							
							
								
								Base public room list off of public_rooms stream  
							
							 
							
							
							
						 
						
							2016-09-15 11:27:04 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								baffe96d95 
								
							
								 
							
						 
						
							
							
								
								Add a room visibility stream  
							
							 
							
							
							
						 
						
							2016-09-14 17:29:19 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								aa3a4944d5 
								
							
								 
							
						 
						
							
							
								
								more pep8  
							
							 
							
							
							
						 
						
							2016-06-24 11:45:23 +01:00  
						
					 
				
					
						
							
							
								 
								David Baker
							
						 
						
							 
							
							
							
								
							
								870c45913e 
								
							
								 
							
						 
						
							
							
								
								Use similar naming we use in email notifs for push  
							
							 
							
							... 
							
							
							
							Fixes https://github.com/vector-im/vector-web/issues/1654  
							
						 
						
							2016-06-24 11:41:11 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								05e01f21d7 
								
							
								 
							
						 
						
							
							
								
								Remove event fetching from DB threads  
							
							 
							
							
							
						 
						
							2016-06-03 17:22:13 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								8e6a163f27 
								
							
								 
							
						 
						
							
							
								
								Add timestamp and auto incrementing ID  
							
							 
							
							
							
						 
						
							2016-05-04 15:19:12 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								984d4a2c0f 
								
							
								 
							
						 
						
							
							
								
								Add /report endpoint  
							
							 
							
							
							
						 
						
							2016-05-04 11:28:10 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								c877f0f034 
								
							
								 
							
						 
						
							
							
								
								Optimise event_search in postgres  
							
							 
							
							
							
						 
						
							2016-04-21 16:56:14 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								3e7fac0d56 
								
							
								 
							
						 
						
							
							
								
								Add published room list edit API  
							
							 
							
							
							
						 
						
							2016-03-21 15:06:07 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								f8aae79a72 
								
							
								 
							
						 
						
							
							
								
								Simplify get_rooms  
							
							 
							
							
							
						 
						
							2016-02-03 13:24:35 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								b32121a5d1 
								
							
								 
							
						 
						
							
							
								
								Unused import  
							
							 
							
							
							
						 
						
							2016-02-03 10:30:56 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								65e92eca49 
								
							
								 
							
						 
						
							
							
								
								Change the way we do public room list fetching  
							
							 
							
							
							
						 
						
							2016-02-02 15:21:10 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								96e400fee5 
								
							
								 
							
						 
						
							
							
								
								Remove the RoomsTable object  
							
							 
							
							
							
						 
						
							2016-01-13 11:07:32 +00:00  
						
					 
				
					
						
							
							
								 
								Matthew Hodgson
							
						 
						
							 
							
							
							
								
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							 
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Wagner-Hall
							
						 
						
							 
							
							
							
								
							
								cf437900e0 
								
							
								 
							
						 
						
							
							
								
								Return world_readable and guest_can_join in /publicRooms  
							
							 
							
							
							
						 
						
							2015-11-10 17:10:27 +00:00  
						
					 
				
					
						
							
							
								 
								Daniel Wagner-Hall
							
						 
						
							 
							
							
							
								
							
								ca2f90742d 
								
							
								 
							
						 
						
							
							
								
								Open up /events to anonymous users for room events only  
							
							 
							
							... 
							
							
							
							Squash-merge of PR #345  from daniel/anonymousevents 
							
						 
						
							2015-11-05 14:32:26 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								46d39343d9 
								
							
								 
							
						 
						
							
							
								
								Explicitly check for Sqlite3Engine  
							
							 
							
							
							
						 
						
							2015-10-16 16:58:00 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								99c7fbfef7 
								
							
								 
							
						 
						
							
							
								
								Fix to work with SQLite  
							
							 
							
							
							
						 
						
							2015-10-14 09:52:40 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								61561b9df7 
								
							
								 
							
						 
						
							
							
								
								Keep FTS indexes up to date. Only search through rooms currently joined  
							
							 
							
							
							
						 
						
							2015-10-12 10:49:53 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								2df8dd9b37 
								
							
								 
							
						 
						
							
							
								
								Move all the caches into their own package, synapse.util.caches  
							
							 
							
							
							
						 
						
							2015-08-11 18:00:59 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								39e21ea51c 
								
							
								 
							
						 
						
							
							
								
								Add support for using keyword arguments with cached functions  
							
							 
							
							
							
						 
						
							2015-07-27 13:57:29 +01:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								53447e9cd3 
								
							
								 
							
						 
						
							
							
								
								Add caches for things requested by the pushers  
							
							 
							
							
							
						 
						
							2015-05-21 16:41:39 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								503e4d3d52 
								
							
								 
							
						 
						
							
							
								
								Fix broken SQL  
							
							 
							
							
							
						 
						
							2015-04-30 18:44:47 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								f383d5a801 
								
							
								 
							
						 
						
							
							
								
								Fix up get_current_state and get_room_name_and_aliases queries to parse events in transaction  
							
							 
							
							
							
						 
						
							2015-04-30 17:12:52 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								2366d28780 
								
							
								 
							
						 
						
							
							
								
								Don't needlessly join on state_events  
							
							 
							
							
							
						 
						
							2015-04-30 14:02:06 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								1d7702833d 
								
							
								 
							
						 
						
							
							
								
								Make simple query rather than long one and then throw away half the results  
							
							 
							
							
							
						 
						
							2015-04-30 10:16:12 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								58d8339966 
								
							
								 
							
						 
						
							
							
								
								Add support for postgres instead of mysql. Change sql accourdingly. blob + varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS.  
							
							 
							
							
							
						 
						
							2015-04-14 13:53:20 +01:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								0e8f5095c7 
								
							
								 
							
						 
						
							
							
								
								Fix unicode database support  
							
							 
							
							
							
						 
						
							2015-03-25 17:15:20 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								0ba393924a 
								
							
								 
							
						 
						
							
							
								
								Escape non printing ascii character  
							
							 
							
							
							
						 
						
							2015-03-24 16:31:52 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								f6583796fe 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into mysql  
							
							 
							
							
							
						 
						
							2015-03-20 16:31:48 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								dc0c989ef4 
								
							
								 
							
						 
						
							
							
								
								Give sensible names for '_simple_...' transactions  
							
							 
							
							
							
						 
						
							2015-03-20 15:59:18 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								fce0114005 
								
							
								 
							
						 
						
							
							
								
								Start removing Tables  
							
							 
							
							
							
						 
						
							2015-03-20 15:05:44 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								87db64b839 
								
							
								 
							
						 
						
							
							
								
								Rearrange storage modules  
							
							 
							
							
							
						 
						
							2015-03-20 14:11:38 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								cb8162d3d1 
								
							
								 
							
						 
						
							
							
								
								Rearrange storage modules  
							
							 
							
							
							
						 
						
							2015-03-20 13:52:56 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								d4f50f3ae5 
								
							
								 
							
						 
						
							
							
								
								decode_result takes an iterable  
							
							 
							
							
							
						 
						
							2015-03-20 10:57:26 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								d7a0496f3e 
								
							
								 
							
						 
						
							
							
								
								Convert storage layer to be mysql compatible  
							
							 
							
							
							
						 
						
							2015-03-19 15:59:48 +00:00  
						
					 
				
					
						
							
							
								 
								Paul "LeoNerd" Evans
							
						 
						
							 
							
							
							
								
							
								59a5f012cc 
								
							
								 
							
						 
						
							
							
								
								Also give _execute() a description  
							
							 
							
							
							
						 
						
							2015-03-11 17:19:17 +00:00  
						
					 
				
					
						
							
							
								 
								Erik Johnston
							
						 
						
							 
							
							
							
								
							
								8bbdf32849 
								
							
								 
							
						 
						
							
							
								
								Convert get_rooms to use runInteraction so the transacion has a more helpful description  
							
							 
							
							
							
						 
						
							2015-02-11 18:56:13 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								3891597eb3 
								
							
								 
							
						 
						
							
							
								
								Remove unused functions  
							
							 
							
							
							
						 
						
							2015-01-13 15:57:26 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								adb04b1e57 
								
							
								 
							
						 
						
							
							
								
								Update copyright notices  
							
							 
							
							
							
						 
						
							2015-01-06 13:21:39 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								9c71d945d6 
								
							
								 
							
						 
						
							
							
								
								Look for name, topic in the event content rather than the event itself when persisting room name and topic events  
							
							 
							
							
							
						 
						
							2014-12-19 15:16:48 +00:00  
						
					 
				
					
						
							
							
								 
								Mark Haines
							
						 
						
							 
							
							
							
								
							
								db9ce032a4 
								
							
								 
							
						 
						
							
							
								
								Fix pep8 codestyle warnings  
							
							 
							
							
							
						 
						
							2014-11-20 17:26:36 +00:00