mogilvie / EncryptBundle

Encryption bundle
89 stars 29 forks source link

Optimize large set of processed data for API calls #20

Closed Volmarg closed 1 year ago

Volmarg commented 3 years ago

I was trying to localize the bottleneck in my API calls. That's the one

Without that:

With that:

mogilvie commented 3 years ago

I'll have to test this, particularly around the impact of detaching the entity postFlush. I'm thinking where the controller goes on modify the entity again and tries to flush the subsequent changes but it will have been detached.

mogilvie commented 1 year ago

Tested detached entities, not in favour of detaching from the entity manager.

However, you can implement your own DoctrineEncryptSubscriber and reference it in the spec_shaper_encrypt.yaml under subscriber_class.