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

  • Home
  • SEARCH
  • 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 585557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:00:55+00:00 2026-05-13T15:00:55+00:00

Whats this?? my query is: Doctrine_Query::create() ->select(‘rec.*’) ->from(‘Records rec’) ->execute(); Records table contains more

  • 0

Whats this??
my query is:

    Doctrine_Query::create()
                ->select('rec.*')
                ->from('Records rec')                   
                ->execute();

Records table contains more than 20k rows.

On executing query on page i am getting an error:

     Fatal error: Maximum execution time of 60 seconds exceeded in \doctrine\lib\Doctrine\Collection.php on line 462

Edit
but to retrieve the values from a table having records more than 20k its taking more than 60 seconds.. Why?? And i am using same table for retriving some other records with a where clause, its running perfectly..

Table Structure:

 CREATE TABLE IF NOT EXISTS `records` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `school` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=16334 ;

database is local.

We can do one thing, we can select a single element. like: city…
I tried that even then its giving the same error..

Number of rows are 16333(exactly) and number of columns are 4 as mentioned in the table structure..

Anybody who can tell me how to solve it???
means why its not working.. mysql simple select query is working perfectly..

EDIT—-

can anybody explain why he/she voted my question “negative”

  • 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-13T15:00:55+00:00Added an answer on May 13, 2026 at 3:00 pm
    Doctrine_Query::create()
                ->select('rec.*')
                ->from('Records rec')                   
                ->limit(5000)
                ->execute();
    

    Try this.. Its will work fine but increase the limit then u will face problems.Retrieving so many records will cause problems..try to change the logic you are using.Indexing etc may solve your problem but i dont have any idea about that..May be some1 here can help you.

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

Sidebar

Related Questions

i wonder what this query means: $blogPost = Doctrine_Query::create()->from('BlogPost p')->where('p.slug = ?', 'doctrine-released')->execute(); could
I am trying to run this query: $record = Doctrine_Query::create() ->select('m.*') ->from('Modification m') ->leftJoin('m.Location
Does anyone know what is wrong with this query? SELECT DISTINCT c.CN as ClaimNumber,
Can someone tell what is wrong with this query? sqltext = SELECT utyp, count(*)
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
Whats wrong wrong with this query please correct me on this syntactcally it's going
Why does doctrine (1.2) use WHERE IN instead of LIMIT ? This code: Doctrine_Query::create()
What's wrong with this query: INSERT INTO Users( weight, desiredWeight ) VALUES ( 160,
Whats this syntax useful for : function(String... args) Is this same as writing function(String[]
Whats wrong with the following c# code? Compiler reports this error: Inconsistent accessibility: parameter

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.