Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7491581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:04:54+00:00 2026-05-29T16:04:54+00:00

I have several question about integrating integrating Doctrine 2.2 & Zend framework. I know

  • 0

I have several question about integrating integrating Doctrine 2.2 & Zend framework. I know there are many questions that discuss the same issue, but I have specific questions about it.

  1. What is the best place to place Doctrine Entities, Proxies, Repositories,...etc for maximum performance? Most Integration techniques generate Entities in a Namespace in the library folder, but I was wondering if putting them in a models folder inside my application would be better for performance.
    Like instead of searching the entire include path my models folder will be faster to find.

  2. What is the best integration method with respect to performance? I plan to use Bisna integration, but I if there is a better method for integration please let me know.

  3. If I want to add a service layer for Doctrine where would be the best place?

Notes:

  • I use a the default folder structure generated by Zend tool for my projects.
  • I downloaded Doctrine 2 and added it to my library folder.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:04:55+00:00Added an answer on May 29, 2026 at 4:04 pm

    I normally put my entities as well in my library as the Bisna video proberly told you. But I agree with you this is not the best place because it’s application specific code. A better approach would be something like application/entities. I don’t think it’s meassurable for performance.

    I like the Bisna integration a lot. I think it’s one of the best integrations of Doctrine2 there is for ZF. It’s small, simple and clean. With the Bisna integration it’s easy to modify caching layers in your application.ini so from that approach it’s good for performance. But the integration isn’t rocket science so I don’t it either makes any difference in performance between other integrations.

    There are some configuration options you need to be aware of to increase performance. You should disable automatic proxy generation in your production environment and create them with the Doctrine-CLI. It’s best practice to enable Annotation and DQL->SQL caching with either APC or Memcache which will improve performance a lot.

    Asside of that you have a lot of possibilities in Doctrine2 to cache your queries by passing the lifetime of a query. If you set-up APC or Memcaching as default caching your database result sets will be saved there.

    Hope my answer helps you a bit, if you want to anything more just ask!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There have been several questions already posted with specific questions about dependency injection ,
There have been several questions recently about database indexing and clustered indexing and it
There have been several questions posted to SO about floating-point representation. For example, the
There have been several questions over the past few days about the proper use
Total beginner question about jQuery: I have a Form that contains several TextBoxes (input
I have seen several threads about this question but I don't know why they
This other SO question asks about an autocomplete textbox in WPF. Several people have
Several questions about functional programming languages have got me thinking about whether XSLT is
I thought about migrating subversion a lot and I have several questions still open.
I have seen several questions with people asking about the same problem but none

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.