gophish/models
Jordan Wright 546da4ee7d Removing unneeded query to improve group performance.
As mentioned in #1702, the query in `insertTargetIntoGroup` isn't needed, since both instances where it's used we already know that the target isn't in the group. This means it's safe to remove that query, improving performance dramatically.

Before:

```
BenchmarkPostGroup100-4     	      81	  12629754 ns/op	 2989993 B/op	   52918 allocs/op
BenchmarkPostGroup1000-4    	       6	 189527792 ns/op	29891818 B/op	  528082 allocs/op
BenchmarkPostGroup10000-4   	       1	6203645806 ns/op	299253648 B/op	 5282859 allocs/op
BenchmarkPutGroup100-4      	     100	  10221833 ns/op	 2589165 B/op	   46078 allocs/op
BenchmarkPutGroup1000-4     	       7	 162692432 ns/op	25812440 B/op	  458425 allocs/op
BenchmarkPutGroup10000-4    	       1	7596445084 ns/op	260385808 B/op	 4581569 allocs/op
```

After:

```
BenchmarkPostGroup100-4     	     133	   8848973 ns/op	 2354605 B/op	   42322 allocs/op
BenchmarkPostGroup1000-4    	       9	 112557410 ns/op	23549206 B/op	  422184 allocs/op
BenchmarkPostGroup10000-4   	       1	3414209403 ns/op	235635952 B/op	 4222090 allocs/op
BenchmarkPutGroup100-4      	     147	   8094333 ns/op	 2271297 B/op	   40777 allocs/op
BenchmarkPutGroup1000-4     	       9	 125092124 ns/op	22635067 B/op	  405421 allocs/op
BenchmarkPutGroup10000-4    	       1	5712591900 ns/op	228592920 B/op	 4051316 allocs/op
```
2020-01-16 20:41:13 -06:00
..
attachment.go Added documentation for multiple endpoints. Fixes #54 2016-01-24 20:47:16 -06:00
campaign.go Get send_by_date (#1720) 2020-01-15 22:02:19 -06:00
campaign_test.go Performance Improvements for Campaign and Group Creation (#1686) 2019-12-02 23:00:11 -06:00
doc.go Major refactoring - created auth, config, models, controllers, and middleware packages. Should help provide modularity and a clean architecture. 2014-01-09 00:42:05 -06:00
email_request.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
email_request_test.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
group.go Removing unneeded query to improve group performance. 2020-01-16 20:41:13 -06:00
group_test.go Performance Improvements for Campaign and Group Creation (#1686) 2019-12-02 23:00:11 -06:00
maillog.go Update Sending Profile Message-ID headers (#1417) (#1441) 2019-04-23 17:31:30 -05:00
maillog_test.go Initial commit of RBAC support. (#1366) 2019-02-19 20:33:50 -06:00
models.go Add Webhook Support 2019-12-15 20:27:21 -06:00
models_test.go Performance Improvements for Campaign and Group Creation (#1686) 2019-12-02 23:00:11 -06:00
page.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
page_test.go Support Re-enabling CapturePasswords for Landing Pages (#1271) 2018-11-11 12:34:26 -06:00
rbac.go Implement User Management API (#1473) 2019-05-31 13:58:18 -05:00
rbac_test.go Initial commit of RBAC support. (#1366) 2019-02-19 20:33:50 -06:00
result.go Performance Improvements for Campaign and Group Creation (#1686) 2019-12-02 23:00:11 -06:00
result_test.go Performance Improvements for Campaign and Group Creation (#1686) 2019-12-02 23:00:11 -06:00
smtp.go Update Sending Profile Message-ID headers (#1417) (#1441) 2019-04-23 17:31:30 -05:00
smtp_test.go Refactor servers (#1321) 2018-12-15 15:42:32 -06:00
template.go Fixed various minor linting issues 2018-12-15 21:38:51 -06:00
template_context.go Minor cleanup on webhook feature integration 2019-12-15 22:07:55 -06:00
template_context_test.go Add {{.BaseURL}} template tag to provide the root URL for static files. Fixes #1182 2018-09-03 20:28:32 -05:00
user.go 1624 - Return API Key on Password Change (#1663) 2019-11-16 12:18:03 -06:00
user_test.go Implement User Management API (#1473) 2019-05-31 13:58:18 -05:00
webhook.go Add Webhook Support 2019-12-15 20:27:21 -06:00