PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1848
Number of posts: 5016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to retireve more than 15000 records in a single query using Mysql Posted by sparkmind on 9 Aug 2004 at 6:53 AM
Hello friends

I m working in PHP with my backend as Mysql. I face a peculiar problem while retrieving records from the database, when the dump is more. Whts tht is..when i try to retrieve more than 15000 records @ a time....the link is going to err page but the same piece of code works for less than 1000 records. i need help regarding the same and how to improve the performance..

Thanks to u in advance
Report
Re: How to retireve more than 15000 records in a single query using My Posted by skylar on 9 Aug 2004 at 8:51 AM
: Hello friends
:
: I m working in PHP with my backend as Mysql. I face a peculiar problem while retrieving records from the database, when the dump is more. Whts tht is..when i try to retrieve more than 15000 records @ a time....the link is going to err page but the same piece of code works for less than 1000 records. i need help regarding the same and how to improve the performance..
:
: Thanks to u in advance
:


why not just do it in pieces?

Can we see the actual query? (or a likeness of it)
Snoochie Boochies

Report
Re: How to retireve more than 15000 records in a single query using My Posted by sparkmind on 9 Aug 2004 at 11:49 PM
this is one of the option so v can not do it in pieces

select TestCaseId,master_caserefs.master as TestName,users.name as TestEngineer,testcase_testengineer.status as Status,testcase_testengineer.pass,testcase_testengineer.relid,ActualDuration,testcase_testengineer.testenddate as TestEndDate,sub_area_name,TestAssgnId,naviscorestatus,ResultComments,niemsstatus,pass.PassName ,master_caserefs.test_desc as TestCaseDescription from testcase_testengineer,atsLogin.users,master_caserefs,master_arearefs,pass where testcase_testengineer.TestEngineer=atsLogin.users.user_id and testcase_testengineer.pass in(177) and testcase_testengineer.relid="9" and testcase_testengineer.TestCaseId=master_caserefs.id and master_caserefs.area_id=master_arearefs.sub_area_id and area_id in and testcase_testengineer.status REGEXP "^.*" and testcase_testengineer.pass=pass.PassId order by master_caserefs.master
Report
Re: How to retireve more than 15000 records in a single query using My Posted by sparkmind on 10 Aug 2004 at 1:43 AM
Hi ,
Do u think i need to modify php.ini config file?
If So then which environmetal variable i need to modify do u have any idea about these?
Thank u
Report
Re: How to retireve more than 15000 records in a single query using My Posted by skylar on 21 Aug 2004 at 3:45 PM
Yes im sure there is a configurable variable in the ini file that allows you to retreive more rows.. it shouldn't be hard to find..

But keep in mind, there is only so much ram the server has, and retreiving THAT many rows could be bad :P
Snoochie Boochies

Report
Re: How to retireve more than 15000 records in a single query using My Posted by dede on 26 Aug 2004 at 9:40 PM
maybe the records exceeded the RAM size in your php.ini file,, check it and increase it and don't forget the actual size of your RAM, it'll yiel with error.....

dede




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.