DDC-151: Cache driver is instantiated multiple times #184

Closed
opened 2026-01-22 12:29:54 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 16, 2009).

Jira issue originally created by user nicokaiser:

A cache driver that is added to the configuration of an EntityManager (e.g. \Doctrine\ORM\Configuration::setMetadataCacheImpl) is instantiated multiple times, so Annotations are parsed way too often, which degrades performance...

Originally created by @doctrinebot on GitHub (Nov 16, 2009). Jira issue originally created by user nicokaiser: A cache driver that is added to the configuration of an EntityManager (e.g. \Doctrine\ORM\Configuration::setMetadataCacheImpl) is instantiated multiple times, so Annotations are parsed way too often, which degrades performance...
admin added the Bug label 2026-01-22 12:29:54 +01:00
admin closed this issue 2026-01-22 12:29:54 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 16, 2009):

Comment created by nicokaiser:

This is especially bad for non-persistent caches like ArrayCache. Class annotations are parsed more than once during the lifetime of the EntityManager...

@doctrinebot commented on GitHub (Nov 16, 2009): Comment created by nicokaiser: This is especially bad for non-persistent caches like ArrayCache. Class annotations are parsed more than once during the lifetime of the EntityManager...
Author
Owner

@doctrinebot commented on GitHub (Nov 16, 2009):

Comment created by romanb:

Care to elaborate a bit? Where and why is it instantiated multiple times? You must have found out about this some way so this would be very helpful information.

@doctrinebot commented on GitHub (Nov 16, 2009): Comment created by romanb: Care to elaborate a bit? Where and why is it instantiated multiple times? You must have found out about this some way so this would be very helpful information.
Author
Owner

@doctrinebot commented on GitHub (Nov 17, 2009):

Comment created by nicokaiser:

Sorry, this was my own fault, so this is not a bug.

@doctrinebot commented on GitHub (Nov 17, 2009): Comment created by nicokaiser: Sorry, this was my own fault, so this is not a bug.
Author
Owner

@doctrinebot commented on GitHub (Nov 17, 2009):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Nov 17, 2009): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#184