Details tab timing out

A place for users and developers of the Xataface to discuss and receive support.

Details tab timing out

Postby jbrnz » Thu Apr 23, 2009 1:07 pm

Another newbie here. I am working with a large database and am having trouble when I select the details tab before performing a search. If a search has not been performed the details tab tries to load every record in the table (for testing this is about 20,000 records) When I get the interface figured out it will be about 695,000 records. Once the details tab is selected I receive just the 20,000 of 20,000 records ahowing 1 of 20,000 but nothing else.

I have been searching the forums for a couple days and have not found what I am looking for.

My questions:

Is it possible to set the app up so that it does not display any results until a search is performed?

or if it is easier -

Can I hide the details and list tabs until a search has been performed?

Any help with this situation would be greatly appreciated.

Josh
jbrnz
 
Posts: 22
Joined: Mon Apr 20, 2009 11:20 am

corrected browse problem, now for list

Postby jbrnz » Mon Apr 27, 2009 5:06 pm

I did find a solution to my problem on the forum. One way of solving the problem with browse details timing out, or if you want to remove the tab is to place the following code in apps actions.ini file with nothing else.

[browse]

By placing this in the actions.ini file it eliminated the browse tab, but made it so details can still be viewed in after clicking on them in the list.

Still getting a timeout when I select the list tab before performing a search and then attempt to view a record from that list. In case anyone else has same problem I will post the solution if I find it.
jbrnz
 
Posts: 22
Joined: Mon Apr 20, 2009 11:20 am

Re: Details tab timing out

Postby shannah » Tue Apr 28, 2009 11:55 am

If a search has not been performed the details tab tries to load every record in the table (for testing this is about 20,000 records)


This sounds like a major problem, and should not be happening. The details tab should only load one record generally. If it is loading more than that we have a problem. Other than the "hanging" what have you observed that would suggest that it is trying to load the whole table?

Are you running a bare-bones app, or have you implemented any delegate classes?

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Details tab timing out

Postby jbrnz » Tue Apr 28, 2009 11:49 pm

Thank you for the response. I am running the app pretty much bare bones. I have setup one delegate class so far, but now that I understand them a little better I will be creating them for each table. I don't at the moment know how to set this up through the delegate class, but you have a lot of good information on your board and I have already learned a boatload of concepts.

It seems that my system, if a large result set is found, returns an error if I try to view the details tab. Actually it just posts the the records number in the top left of the browser everything else is blank.

(Found 23130 of 29999 records in table song
Now Showing 2 of 23130)

I checked my apache log:
PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 131072 bytes) in /dataface/Dataface/DB.php on line 344

the code on that line is
$out[] = $row;
jbrnz
 
Posts: 22
Joined: Mon Apr 20, 2009 11:20 am

Postby shannah » Wed Apr 29, 2009 7:31 am

Try just raising the memory to 32 megs to see if that resolves it.

at the beginning of your index.php file you could add:
Code: Select all
ini_set('memory_limit', '32M');
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby jbrnz » Wed Apr 29, 2009 9:06 am

Thanks Steve. That seems to have taken care of the problem. The app is now working smooth and is not returning the previous error.

Thank you very much for the support you provide to xataface users.
jbrnz
 
Posts: 22
Joined: Mon Apr 20, 2009 11:20 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 15 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved