假设我有两个模型
class Student(models.Model):
name = models.CharField(max_length = 60,blank= False,)
subject = models.CharField(max_length = 60,blank=False)
marks = models.IntegerField(default =0,blank=True)
teacher = models.CharField(max_length = 60,blank=False)
和另一个模型
class EncryptedStudent(models.Model):
name = models.CharField(max_length = 60)
subject = pgcrypto.EncryptedCharField(blank=False)
marks = pgcrypto.EncryptedIntegerField(default = 0,blank= True)
teacher = pgcrypto.EncryptedCharField(blank=False)
现在我想查询数据库。会有时差吗?如何评估任何时差?
我正在使用pgcrypto
模块。这是github链接。