This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: 19-Oct-2017 19:15 Last Post By: RobM Threads: [ Previous | Next ]
RobM

Posts: 4,383
Registered: 4-Aug-2006
Curious about Json file
Posted: 19-Oct-2017 17:10
 
  Click to reply to this thread Reply
Would the problems of json files And previewing albums go away if Tiger switched to the new Json API method, since that way there are no json files created?
Laza

Posts: 9,472
Registered: 6-Sep-2005
Re: Curious about Json file
Posted: 19-Oct-2017 18:07   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Hi Rob, what do you mean by "new JSON API method"?
RobM

Posts: 4,383
Registered: 4-Aug-2006
Re: Curious about Json file
Posted: 19-Oct-2017 18:12   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza

Posts: 9,472
Registered: 6-Sep-2005
Re: Curious about Json file
Posted: 19-Oct-2017 18:36   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Do you mean to include all the datatree as a JS variable on every HTML page? That's not very professional if you have a large tree. Now my jalbum.album.js loads only the root's tree.json and the current folder's data1.json files, and adds the rest only when requested. This approach could be useful in one scenario though. When one has a huge album tree (with 3000 folders for example) but not not too many images per folder, and wants to collect all the tags upfront. Or wants to run a search on the whole tree. Perhaps we can use this JSONmaker to collect all the search data, to avoid too many data1.json file loads. Probably the best solution would be a database manager running on the server and providing data on demand, but with jAlbum's model this is not really an option.
RobM

Posts: 4,383
Registered: 4-Aug-2006
Re: Curious about Json file
Posted: 19-Oct-2017 18:53   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza wrote:
Do you mean to include all the datatree as a JS variable on every HTML page? That's not very professional if you have a large tree. Now my jalbum.album.js loads only the root's tree.json and the current folder's data1.json files, and adds the rest only when requested. This approach could be useful in one scenario though. When one has a huge album tree (with 3000 folders for example) but not not too many images per folder, and wants to collect all the tags upfront. Or wants to run a search on the whole tree. Perhaps we can use this JSONmaker to collect all the search data, to avoid too many data1.json file loads. Probably the best solution would be a database manager running on the server and providing data on demand, but with jAlbum's model this is not really an option.
I was thinking of just including the data for the current folder, though for searching you would still need the full dataset for the album.

Thanks, it has given me more info to update the wiki pages, it seems both methods should be documented with the pros and cons shown.

Edited by: jGromit on 19-Oct-2017 13:12, to separate quoted material from newly-posted text.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums