You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**Don't mix encrypted and unencrypted data when data is encrypted**
315
-
```sql
316
-
-- ❌ Wrong
317
-
SELECT*FROM users WHERE email ='user@example.com'
318
-
319
-
-- ✅ Correct
320
-
SELECT*FROM users WHERE email_encrypted = $1
321
-
```
322
-
323
-
2.**Don't use ORDER BY directly on encrypted columns**
324
-
```sql
325
-
-- ❌ Wrong
326
-
SELECT*FROM users ORDER BY email_encrypted
327
-
328
-
-- ✅ Correct
329
-
SELECT*FROM users ORDER BYeql_v2.ore_block_u64_8_256(age_encrypted)
330
-
```
262
+
TODO: make docs for creating Postgres Indexes on columns that require searches. At the moment EQL v2 doesn't support creating indexes while also using the out-of-the-box operator and operator families. The solution is to create an index using the EQL functions and then using the EQL functions directly in your SQL statments, which isn't the best experience.
0 commit comments