mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 12:02:26 -05:00 
			
		
		
		
	[performance] remove the pragma optimize analysis limit on connection close (#3386)
This commit is contained in:
		
					parent
					
						
							
								23b6d2cc64
							
						
					
				
			
			
				commit
				
					
						f550f596fa
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -112,7 +112,7 @@ func (c *sqliteConn) Close() (err error) { | |||
| 	raw := c.connIface.(sqlite3driver.Conn).Raw() | ||||
| 
 | ||||
| 	// see: https://www.sqlite.org/pragma.html#pragma_optimize | ||||
| 	const onClose = "PRAGMA analysis_limit=1000; PRAGMA optimize;" | ||||
| 	const onClose = "PRAGMA optimize;" | ||||
| 	_ = raw.Exec(onClose) | ||||
| 
 | ||||
| 	// Finally, close. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue