Remove usages of FIND_IN_SET
FIND_IN_SET doesn't make use of indexes
This commit is contained in:
		@@ -17,6 +17,7 @@ use serenity::{
 | 
			
		||||
    model::id::{ChannelId, GuildId, UserId},
 | 
			
		||||
};
 | 
			
		||||
use sqlx::types::Json;
 | 
			
		||||
use sqlx::FromRow;
 | 
			
		||||
 | 
			
		||||
use crate::web::{
 | 
			
		||||
    catchers::internal_server_error,
 | 
			
		||||
@@ -177,7 +178,7 @@ pub struct CreateReminder {
 | 
			
		||||
    utc_time: NaiveDateTime,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[derive(Serialize)]
 | 
			
		||||
#[derive(Serialize, FromRow)]
 | 
			
		||||
pub struct GetReminder {
 | 
			
		||||
    attachment_name: Option<String>,
 | 
			
		||||
    avatar: Option<String>,
 | 
			
		||||
@@ -209,7 +210,7 @@ pub struct GetReminder {
 | 
			
		||||
    utc_time: NaiveDateTime,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[derive(Serialize, Deserialize)]
 | 
			
		||||
#[derive(Serialize, Deserialize, FromRow)]
 | 
			
		||||
pub struct ReminderCsv {
 | 
			
		||||
    attachment: Option<Attachment>,
 | 
			
		||||
    attachment_name: Option<String>,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user