This topic is locked
[SOLVED]

 Select after applying the filter

10/13/2010 5:54:31 PM
PHPRunner General questions
M
mdibarra author

Hello, I hope you can help me.

I have a table with millions of records and need to know:

how to run a select after applying the filter in PHPRunner 5.2?

If you first run the select, query is blocked.

Thank,
Mario

Sergey Kornilov admin 10/14/2010

Mario,
I'm not what is "run a select after applying the filter" and "query is blocked".

Could you rephrase your question?

M
mdibarra author 10/14/2010



Mario,
I'm not what is "run a select after applying the filter" and "query is blocked".

Could you rephrase your question?


Thank you very much for your response. I will explain better

I have the following query:
SELECT

LOCATIONID,

POSTEDTIME,

BUSINESSDATE,

JOBNAME,

MSGSIZE

FROM LOCATION_ACTIVITY_DB.TRANSACTION_KEY
The result is more than 14 million records. If this happens IE crashes or application fails.

What I need is that the user can apply the filter before running the query.

The user to first choose the LOCATIONID, BUSINESSDATE, JOBNAME and then to perform the query.

Sergey Kornilov admin 10/14/2010

Turn on 'No records on first page' option that can be found on Miscellaneous screen in PHPRunner.

M
mdibarra author 10/14/2010



Turn on 'No records on first page' option that can be found on Miscellaneous screen in PHPRunner.


Thanks, but now this is my problem:

Fatal error: Maximum execution time of 60 seconds Exceeded in .. \output\include\dbconnection.php on line 29

Sergey Kornilov admin 10/14/2010

You need to explain when this happens i.e. before search, after search, what are search parameters.
If you run a search and it times out you need to make sure all required indexes are in place etc. Especially important if you have millions of records.

M
mdibarra author 10/14/2010



You need to explain when this happens i.e. before search, after search, what are search parameters.
If you run a search and it times out you need to make sure all required indexes are in place etc. Especially important if you have millions of records.


When I set the query as follows:

SELECT

LOCATION,

POSTEDTIME,

BUSINESSDATE,

JOBNAMES,

MSGSIZE

FROM LOCATION_ACTIVITY_DB.TRANSACTION_KEY

WHERE (LOCATION = '6652')

The application works fine, bring the right results. But I can not see other LOCATIONID than the 6652 because it gives me no results.
Now, when you set the query as follows:

SELECT

LOCATION,

POSTEDTIME,

BUSINESSDATE,

JOBNAMES,

MSGSIZE

FROM LOCATION_ACTIVITY_DB.TRANSACTION_KEY

and use the filter to apply results do not come, giving the error.

M
mdibarra author 10/14/2010

I solved the problem by creating an index for the table.

Thank you very much for your help.