Closed IanMiddlebrook closed 1 year ago
@JimBacon could you pick this up please
Hi @IanMiddlebrook
We have identified a problem and need to rebuild a summary table in the database. It is quite a time consuming process and we don't want to overload the server by trying to do it all at once. We are also waiting for another maintenance task to complete before we start. Users should see a gradual recovery over the next few days.
While this is an inconvenience, Recording is still possible by adding species to the list manually.
Thanks @JimBacon
Can I assume this table also affects the provision of data for the Year by Year Index Plot - with Data filter set to 'Count' - This is also returning very little (beyond data entered today!).
Best wishes, Ian
Very likely affects any annual summary type of output. The problem is a table of summary data by taxon, year, and location. The table has today's data but seemed to forget almost everything else it knew during some ructions with the server yesterday.
Thanks @JimBacon - is there a similar table that services 'Species I have recorded' which would based on User rather than location - or is it all in the same summary table?
The "species I have recorded", "species on a location", the year by year plot, and the annual summary all use the same table, so will all have this problem.
Gary has completed the rebuild of the faulty database table. @IanMiddlebrook, if everything looks good to you, please close this issue.
Note from email correspondence: the query used to repair the table was like
INSERT INTO work_queue (task, entity, record_id, priority, cost_estimate, created_on)
SELECT 'task_summary_builder_sample', 'sample', min(id), 2, 50, now()
FROM indicia.samples
WHERE deleted=false
AND location_id is not null AND parent_id is NULL AND
survey_id IN (SELECT survey_id FROM indicia.summariser_definitions WHERE deleted = false)
GROUP BY survey_id, location_id, created_by_id, EXTRACT(year FROM date_start)
Hi @JimBacon @Gary-van-Breda Just looking at a couple of sites I'm involved with, I can see that there is still a lot missing.
Wyke Regis (id=243559) - my 2023 Annual Summary table only shows species I've recorded in the last two visits - Brimstone, Comma, Green-veined White, Orange Tip, Peacock, Small Copper, Small Tortoiseshell and Wall Brown all missing - and that's just this year. 2022 data only shows counts for Comma and Speckled Wood - everything else missing. If I go to data entry page, the list for 'species known at this site' is certainly incomplete.
Looking at the Year by Year Index plot (Data = Count) for Lulworth Lake (id=2785) I can see several years with data completely missing:
The totals for each year should be more like (starting at 1999):
366 | 403 | 225 | 192 | 622 | 480 | 367 | 837 | 397 | 343 | 440 | 240 | 210 | 250 | 407 | 483 | 488 | 358 | 486 | 685 | 731 | 464 | 145 | 222
Hi @DavidRoy @Gary-van-Breda
Following the latest updates, there is a problem with the data entry form - Butterfly lists for 'Species known at this site' and 'Species I have recorded' are not loading, leaving the form blank for most recorders. Likewise, the lists for Moths, Odonata and Others are all blank, where they should be pre-loaded with all species previously recorded on that site.
Thanks, Ian