This Help forum is for issues relates to the latest release (1.7.0/1). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page:
  • 1

TOPIC:

[BUG] Family statistics - divorce 5 years 7 months ago #1

  • swieka
  • swieka's Avatar Topic Author
  • Visitor
  • Visitor
I have multiples families with divorce record (1 DIV Y) however the family statistics page displays 0 divorces and empty divorce related charts.

Please Log in or Create an account to join the conversation.

Family statistics - divorce 5 years 7 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14506
The statistics are only approximate. For performance reasons, they are actually driven from a list of events with dates.

If you added dates to these - even "BET xxxx AND yyyy" (where xxxx is the year of marriage and yyyy is when you learned of the divorce) - then they would be included in the statistics.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Last edit: by fisharebest.

Family statistics - divorce 5 years 7 months ago #3

  • swieka
  • swieka's Avatar Topic Author
  • Visitor
  • Visitor
What about the following query? It should be quick.

SELECT COUNT(*) FROM `webtrees_families` Where f_gedcom LIKE '%DIV Y%'

Please Log in or Create an account to join the conversation.

Family statistics - divorce 5 years 7 months ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14506
That would require a full-table scan, which would be slow on large trees.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum