* Relation Pool Number: Caution

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
User avatar
LornaCraig
Megastar
Posts: 2989
Joined: 11 Jan 2005 17:36
Family Historian: V7
Location: Oxfordshire, UK

Re: Relation Pool Number: Caution

Post by LornaCraig » 21 Apr 2022 14:16

davidf wrote:
21 Apr 2022 12:54
I doubt that pool numbers are really random - otherwise we will get some occasional really high pool numbers! I suspect that there is some process to ensure that pool numbers are always a continuous list starting at one....
David, yes I'm sure the pool numbers are always a continuous list with no gaps, so there will always be some renumbering when existing pools are combined.

Your algorithm looks entirely plausible. However I guess that if you imported a Gedcom which already had several pools FH could only assign the numbers arbitrarily becasue it wouldn't know which pool had been created first. Perhaps this is the situation the Help file is referring to.
Lorna

User avatar
davidf
Megastar
Posts: 951
Joined: 17 Jan 2009 19:14
Family Historian: V6.2
Location: UK

Re: Relation Pool Number: Caution

Post by davidf » 21 Apr 2022 14:55

I struggle with a program doing something "arbitrarily"!

When reading in a GEDCOM how could it allocate pool numbers? It has to work through all the Individual records - presumably held in some memory array - and logically it starts with the first read into the array (normally @I1 ?) puts it into Pool 1and then has to iteratively go through all that individual's relationships assigning the same pool number to all their relatives, before moving to the next individual in the array without an assigned pool number giving it the next available pool number and repeating?

Or is it more effective to initially assign everyone to their own pool (pool number = @I number), and then go through all FAMS and FAMC "records" (in GEDCOM file order) merging pools (taking the lowest pool number every time) before doing a tidy up to eliminate vacant pools (which would mean most "solo" pools are likely to end up at the end)?

Given I don't think "Pool" is a GEDCOM field and I don't see how pool numbers can persist when a File or Project is closed, this process has to operate every time FH opens a GEDCOM? So it must be a pretty efficient algorithm - far from arbitrarily

Or does it only do it when the program first "needs" Pool numbers? (At start up for me because I have "Pool" in my Record Window?)
David
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Relation Pool Number: Caution

Post by tatewise » 21 Apr 2022 14:59

IMO This is all just so much pointless speculation! Only CP can give you a definite answer.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
Gowermick
Megastar
Posts: 1629
Joined: 13 Oct 2015 07:22
Family Historian: V7
Location: Swansea

Re: Relation Pool Number: Caution

Post by Gowermick » 21 Apr 2022 15:07

Mike,
Just had a play with the sample project and the following rules seem to apply:-

a) Pool numbers are added sequentially to the next number
b) when a pool X becomes empty, all pool numbers higher than X are decremented by 1.
c) When pool X is split, the two parts become X & X+1, and all pool numbers greater than X are incremented by 1

This latter rule explains why pool numbers are not necessarily in order of size
Mike Loney

Website http://www.loney.tribalpages.com
http://www.mickloney.tribalpages.com

User avatar
davidf
Megastar
Posts: 951
Joined: 17 Jan 2009 19:14
Family Historian: V6.2
Location: UK

Re: Relation Pool Number: Caution

Post by davidf » 21 Apr 2022 15:22

tatewise wrote:
21 Apr 2022 14:59
IMO This is all just so much pointless speculation! Only CP can give you a definite answer.
Agreed that we probably need CP to give an answer - although Mick seems to be cracking it!

Going back several posts, I do want to know that if I format a box based on "Pool Number not 1", all non linked individuals (I won't say "relatives" - see another thread) will be subtly indicated. So not pointless to me! Perhaps I need to change it to "Same Pool as me" to avoid a possibly confusing gotcha?

Contribution is optional and I think we are still being true to the origins of the thread?
David
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Relation Pool Number: Caution

Post by tatewise » 21 Apr 2022 15:32

David, the expression you need is =IsTrue( RelationPool( Record(6,"I") ) = RelationPool( %INDI% ) ) where you replace the 6 with your Record Id number.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
davidf
Megastar
Posts: 951
Joined: 17 Jan 2009 19:14
Family Historian: V6.2
Location: UK

Re: Relation Pool Number: Caution

Post by davidf » 21 Apr 2022 16:24

Thanks, better safe than sorry at some time in the future when I might have forgotten this thread!
David
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)

Post Reply