large mysql data table and pagination

Questionslarge mysql data table and pagination
David asked 10 years ago

Hi Abu ,

I have a problem with large database and some querys in phpgrid.

one of the query that take long time to load

SELECT s.seq_number,a.ticket_number,a.ticket_total,a.terminal,a.operateur_id,(SELECT FROM_UNIXTIME(a.date, '%Y-%m-%d %H:%i:%s')) as valdate
FROM (SELECT seq_number FROM moprop WHERE MOP IN (1)) s
INNER JOIN ticket a ON a.seq_number = s.seq_number
INNER JOIN items b ON b.seq_number = s.seq_number
WHERE b.crd IN (425,335,225) LIMIT 100 OFFSET 0

Each table is +/- 4-5 million records

query directly from phpmyadmin take 0.14 sec to load page

from phpgrid ( i remove LIMIT 100 normally replaced by $grid["rowNum"] = 100)
i take more than 2 minutes to load page.

any ideas ?

Thanks

3 Answers
Abu Ghufran answered 10 years ago

Hello,

I cannot generate exact setup and db here, I would need remote session to review this case.
Let me know your feasible time and working timezone.

I'll check this case remotely.

Abu Ghufran answered 10 years ago

You can email me at [email protected] for further proceedings.

Mohammad answered 9 years ago

Request-URI Too Large
The requested URL's length exceeds the capacity limit for this server.

see how i can fix this problem because we have 52 fields and when i filter 3 or 4 dates filter same time why url length error come, where is length url variable

thanks.

Your Answer

11 + 6 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?