increase speed of mysql when searching posts

This commit is contained in:
2024-02-18 18:50:01 +03:00
parent 24977c90bd
commit 2ae2d92e26
5 changed files with 42 additions and 4 deletions
+8 -1
View File
@@ -68,7 +68,7 @@ public class Post : RepresentableEntity
/// The URI where this post is located in web.
/// </summary>
[Required]
[MaxLength(256)]
[MaxLength(1024)]
public string Url { get; set; }
/// <summary>
@@ -83,6 +83,13 @@ public class Post : RepresentableEntity
[Required]
public DateTime ReceivedAt { get; set; }
/// <summary>
///
/// </summary>
[Required]
[MaxLength(64)]
public string UrlHash { get; set; }
public Post()
{
PostId = new Guid();