[comixed-dev] Re: New library code for fetching

  • From: "bareheiny Alexander" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "bareheiny" for DMARC)
  • To: "comixed-dev@xxxxxxxxxxxxx" <comixed-dev@xxxxxxxxxxxxx>
  • Date: Mon, 25 Nov 2019 23:32:41 +1300

Over the years, I’ve been explored YAC, Ubooquity and ComicRack (something’s 
happening here...the website is showing a new landing page).

As far as I can tell, all of the applications extract and store comic covers – 
making the thumbnail generation a lot quicker.  Is that something you’ve 
considered for CR?

My (non-developer) thoughts are that cover display would be pulled from 
pre-extracted images...statistics and filter fields (publisher, characters 
etc.) would be pulled from the database via SQL (I’m a BI developer, so I see 
SQL everywhere – if all you have is a hammer, all you see are nails as they 
say) as the user navigates to the relevant pages – rather than having to wait 
for the entire library to load and get everything populated.

As it stands, with CX trying to load the entire library and all metadata....it 
takes far too long to load a large library (as I’ve mentioned on GitHub, my 
session times out before the library fully loads).  If there is no metadata, 
the library loads quick smart (to be fully confirmed).

Not being an application developer, I’m likely missing vital information / 
experience...I’m more than happy to be enlightened.  Also happy to be told that 
this isn’t the appropriate list for my input :)


From: Darryl L. Pierce
Sent: Monday, 25 November 2019 2:43 PM
To: comixed-dev@xxxxxxxxxxxxx
Subject: [comixed-dev] New library code for fetching

I spent time yesterday and today writing a new set of actions for the library 
to move away from loading the whole library into the browser. What it does now 
is, when you go to the library view, it fetches just the comics for the current 
page. And as you move about, changing sorting, switching pages, changing the 
number of comics to show, etc, it makes a REST call to fetch the comics to 
display and refreshes the view.

It's going to be a process to refactor other pages, but what I'm thinking is 
this:

1. Have the main page load specific statistics (rather than extracting it from 
the comics as they're loaded) with a single REST API.
2. Have each of the collections page use a similar request (or enhancements to 
the new request) to get comics in pages.
3. Change the current continuous update to do some other, simpler actions to 
get statistics on the library rather than loading everything. Or just dump that 
continuous update entirely.

And these are all things I think we can get done by the end of the year when I 
want to put the 0.5 release out for RC.

I merged this one, but would like to start putting things up for PRs to get 
feedback if you guys are comfortable with getting more hands-on now. :D

-- 
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." - Gord 
Downie

Other related posts: