Alternative to “master” and “slave” in entity relationship?

后端 未结 9 1793
遥遥无期
遥遥无期 2021-02-07 11:51

Example: I have two tables in my database called classA and classB, and one table called classA_classB. The last one just defi

9条回答
  •  鱼传尺愫
    2021-02-07 12:39

    I found myself in this dilemma too. Thanks for asking the question.

    I'm in a cluster, so we preferred:

    • slave -> node
    • master -> coordinator

    That's a lot better.

    EDIT: It is important to note for example that other projects have updated its policies, recently the Linux kernel documentation got update with this. Citing:

    For symbol names and documentation, avoid introducing new usage of
    'master / slave' (or 'slave' independent of 'master') and 'blacklist /
    whitelist'.
    
    Recommended replacements for 'master / slave' are:
        '{primary,main} / {secondary,replica,subordinate}'
        '{initiator,requester} / {target,responder}'
        '{controller,host} / {device,worker,proxy}'
        'leader / follower'
        'director / performer'
    
    Recommended replacements for 'blacklist/whitelist' are:
        'denylist / allowlist'
        'blocklist / passlist'
    

提交回复
热议问题