mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 10:42:24 -05:00 
			
		
		
		
	[feature/chore] Add Move database functions + cache (#2647)
* [feature/chore] Add Move database functions + cache * add move mem ratio to envparsing.sh * update comment
This commit is contained in:
		
					parent
					
						
							
								61a2b91f45
							
						
					
				
			
			
				commit
				
					
						b22e213e15
					
				
			
		
					 17 changed files with 671 additions and 1 deletions
				
			
		
							
								
								
									
										13
									
								
								internal/cache/size.go
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								internal/cache/size.go
									
										
									
									
										vendored
									
									
								
							|  | @ -460,6 +460,19 @@ func sizeofMention() uintptr { | |||
| 	})) | ||||
| } | ||||
| 
 | ||||
| func sizeofMove() uintptr { | ||||
| 	return uintptr(size.Of(>smodel.Move{ | ||||
| 		ID:          exampleID, | ||||
| 		CreatedAt:   exampleTime, | ||||
| 		UpdatedAt:   exampleTime, | ||||
| 		AttemptedAt: exampleTime, | ||||
| 		SucceededAt: exampleTime, | ||||
| 		OriginURI:   exampleURI, | ||||
| 		TargetURI:   exampleURI, | ||||
| 		URI:         exampleURI, | ||||
| 	})) | ||||
| } | ||||
| 
 | ||||
| func sizeofNotification() uintptr { | ||||
| 	return uintptr(size.Of(>smodel.Notification{ | ||||
| 		ID:               exampleID, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue