Re: [GENERAL] Fast Search on Encrypted Feild

2009-11-15 Thread Naoko Reeves
As Alban pointed out encrypting the search value and compare stored encrypted value is very fast though it can't do LIKE search. After I received valuable input from Merlin, Bill and John, I did some research regarding "search against encrypted field" in general and as in everyone's advice, I must

Re: [GENERAL] Fast Search on Encrypted Feild

2009-11-15 Thread Merlin Moncure
On Sat, Nov 14, 2009 at 5:08 PM, John R Pierce wrote: > Naoko Reeves wrote: >> >> I have a encrypted column use encrypt function. >> >> Querying against this column is almost not acceptable – returning 12 rows >> took 25,908 ms. >> >> The query was simply Select decrypt(phn_phone_enc) FROM phn WHE

Re: [GENERAL] Fast Search on Encrypted Feild

2009-11-15 Thread Alban Hertroys
On 14 Nov 2009, at 22:27, Naoko Reeves wrote: > I have a encrypted column use encrypt function. > Querying against this column is almost not acceptable – returning 12 rows > took 25,908 ms. > The query was simply Select decrypt(phn_phone_enc) FROM phn WHERE > decrypt(phn_phone_enc,’xxx’,’xxx’) L

Re: [GENERAL] Fast Search on Encrypted Feild

2009-11-14 Thread Bill Moran
"Naoko Reeves" wrote: > > Merlin, > Thank you for your quick response. I see... our security requirements are: > We are encrypting PII information within our DB and because of the sensitive > nature of our data, we must balancing both performance and security to meet > our client requirements. >

Re: [GENERAL] Fast Search on Encrypted Feild

2009-11-14 Thread John R Pierce
Naoko Reeves wrote: I have a encrypted column use encrypt function. Querying against this column is almost not acceptable – returning 12 rows took 25,908 ms. The query was simply Select decrypt(phn_phone_enc) FROM phn WHERE decrypt(phn_phone_enc,’xxx’,’xxx’) LIKE ‘123%’ So I built index l

Re: [GENERAL] Fast Search on Encrypted Feild

2009-11-14 Thread Naoko Reeves
Merlin, Thank you for your quick response. I see... our security requirements are: We are encrypting PII information within our DB and because of the sensitive nature of our data, we must balancing both performance and security to meet our client requirements. Our clients are mainly lawyers and h

Re: [GENERAL] Fast Search on Encrypted Feild

2009-11-14 Thread Merlin Moncure
On Sat, Nov 14, 2009 at 4:27 PM, Naoko Reeves wrote: > I have a encrypted column use encrypt function. > > Querying against this column is almost not acceptable – returning 12 rows > took 25,908 ms. > > The query was simply Select decrypt(phn_phone_enc) FROM phn WHERE > decrypt(phn_phone_enc,’xxx’

[GENERAL] Fast Search on Encrypted Feild

2009-11-14 Thread Naoko Reeves
I have a encrypted column use encrypt function. Querying against this column is almost not acceptable - returning 12 rows took 25,908 ms. The query was simply Select decrypt(phn_phone_enc) FROM phn WHERE decrypt(phn_phone_enc,'xxx','xxx') LIKE '123%' So I built index like: CREATE INDEX idx_phn_p