久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

        <bdo id='U8fQS'></bdo><ul id='U8fQS'></ul>

        <i id='U8fQS'><tr id='U8fQS'><dt id='U8fQS'><q id='U8fQS'><span id='U8fQS'><b id='U8fQS'><form id='U8fQS'><ins id='U8fQS'></ins><ul id='U8fQS'></ul><sub id='U8fQS'></sub></form><legend id='U8fQS'></legend><bdo id='U8fQS'><pre id='U8fQS'><center id='U8fQS'></center></pre></bdo></b><th id='U8fQS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='U8fQS'><tfoot id='U8fQS'></tfoot><dl id='U8fQS'><fieldset id='U8fQS'></fieldset></dl></div>
        <legend id='U8fQS'><style id='U8fQS'><dir id='U8fQS'><q id='U8fQS'></q></dir></style></legend>

        <small id='U8fQS'></small><noframes id='U8fQS'>

      1. <tfoot id='U8fQS'></tfoot>

        設計用于單點登錄的用戶表以跨子域使用

        Design users table for single sign in to use across sub domains(設計用于單點登錄的用戶表以跨子域使用)

        <tfoot id='lqb74'></tfoot>
            <tbody id='lqb74'></tbody>

            <bdo id='lqb74'></bdo><ul id='lqb74'></ul>

              <i id='lqb74'><tr id='lqb74'><dt id='lqb74'><q id='lqb74'><span id='lqb74'><b id='lqb74'><form id='lqb74'><ins id='lqb74'></ins><ul id='lqb74'></ul><sub id='lqb74'></sub></form><legend id='lqb74'></legend><bdo id='lqb74'><pre id='lqb74'><center id='lqb74'></center></pre></bdo></b><th id='lqb74'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lqb74'><tfoot id='lqb74'></tfoot><dl id='lqb74'><fieldset id='lqb74'></fieldset></dl></div>

                <legend id='lqb74'><style id='lqb74'><dir id='lqb74'><q id='lqb74'></q></dir></style></legend>

                <small id='lqb74'></small><noframes id='lqb74'>

                • 本文介紹了設計用于單點登錄的用戶表以跨子域使用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我們有一個包含子域的站點,例如:

                  We have a site which has sub domains like:

                  1. example.com - 主站點
                  2. food.example.com
                  3. fashion.example.com

                  并且每個域和子域都有不同的數據庫,如下所示:

                  And each domain and sub domain has a different database, like this:

                  1. exampleDB - 帶有用戶表的主數據庫
                  2. foodDB
                  3. 時尚數據庫

                  你嘗試過什么?

                  1. 現在,對于單點登錄,我們計劃重定向主站點中的用戶進行注冊.

                  1. Right now, for single sign in we have planned to redirect users in our Main Site for signing up.

                  子域中的訂單處理從主數據庫中獲取 UserID 并存儲在相應子域的 Orders 表中.

                  While order processing in sub domains get the UserID from main DB and store in respective sub domain's Orders table.

                  出于報告目的,我們將沒有 FK 約束UserID 存儲在 Orders 表中,因為我們有單獨的數據庫.

                  For reporting purposes we store the UserID without FK constraint in the Orders table since we have separate database.

                  我可以在這里看到 堆棧交換站點有單獨的數據庫,但它有單獨的 用戶 表也是嗎?

                  I can see here that stack exchange sites have separate databases, but does it have separate users tables too?

                  StackExchange Network 配置文件是否存儲在單獨的數據庫中?

                  我可以從這里看到 每個站點的用戶表都有 StackExchange Network 配置文件的 AccountId.

                  I can see from here that Every site's user table has AccountId of StackExchange Network profile.

                  示例:

                  1. 這里是 ID:7598 的 Nick Craver 網絡配置文件

                  1. Here is Nick Craver Network Profile with ID:7598

                  他在歷史站點中的個人資料的帳戶 ID 與相同 ID 關聯:7598 檢查 this 查詢.

                  His profile in History Site has Account ID Linked with same ID:7598 check this query.

                  我在數據啞巴中的任何地方都看不到Accounts表,那么 AccountId 被存儲了嗎?以及如何使用 AccountId 在多個站點中完成 SSO?

                  I can't see the Accounts table anywhere in data dumbs , So Were is AccountId stored? And how is SSO done in multiple sites using AccountId ?

                  我的問題:我們是否需要主數據庫中的單個用戶表,或者我們必須為子域的數據庫和Link Main DB UserID創建單獨的用戶表,但不需要FK 約束?哪個是購物網站的最佳設計?

                  My Question: Do we need a single user table in Main DB or we have to create separate user tables for the sub domain's database and Link Main DB UserID but not FK constraint? Which is the best design for a shopping site?

                  任何幫助都會很棒.

                  推薦答案

                  您提到的 UserID 僅在單個 DB 的特定 Users 表中相同.它實際上不是您域中任何用戶的標識符.要識別多個數據庫中的用戶,您需要為每個用戶提供域級 ID.一種簡單的方法是將一個名為 UID 或類似名稱的屬性(列)添加到全局唯一 ID(GUID,請參閱 https://msdn.microsoft.com/en-us/library/system.guid(v=vs.110).aspx) 并將其用作域級 ID 來識別用戶而不是 UserId.通過這種方式,您可以自由地將用戶信息存儲在域中的多個數據庫中.所以:

                  The UserID you mentioned is only identical in a specific Users table in a single DB. It's actually not an identifier of any user in your domain. To identify users across multiple databases, you will need a domain-level ID for every user. A simple way is to add one more property (column) named UID or something like that to User class (table), of Global Unique Id (GUID, see https://msdn.microsoft.com/en-us/library/system.guid(v=vs.110).aspx) and use it as domain-level ID to identify users instead of UserId. This way you can freely store user information in multiple databases in your domain. So:

                  • 您只能在每個子域的數據庫中保存域級 ID,并使用該 ID 從主域數據庫中查詢完整的用戶配置文件.優點:消耗更少的內存.權衡:在分布式系統中,從子域查詢用戶信息需要更長的時間,因為信息駐留在主數據庫中.
                  • 您可以在所有數據庫中保存完整的用戶信息,包括主數據庫和子數據庫.優點:更快的查詢.缺點:消耗更多內存,當用戶信息發生變化時,您必須在所有數據庫之間同步.

                  這篇關于設計用于單點登錄的用戶表以跨子域使用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Break down a table to pivot in columns (SQL,PYSPARK)(分解表以按列進行透視(SQL、PYSPARK))
                  Spark giving Null Pointer Exception while performing jdbc save(Spark在執行jdbc保存時給出空指針異常)
                  execute query on sqlserver using spark sql(使用 spark sql 在 sqlserver 上執行查詢)
                  How can I compare the one line in one CSV with all lines in another CSV file?(如何將一個 CSV 中的一行與另一個 CSV 文件中的所有行進行比較?)
                  How to map the column wise data in flowfile in NiFi?(如何在 NiFi 中映射流文件中的列數據?)
                  connect SQL to apache nifi(將 SQL 連接到 apache nifi)

                  <small id='1ayby'></small><noframes id='1ayby'>

                  • <legend id='1ayby'><style id='1ayby'><dir id='1ayby'><q id='1ayby'></q></dir></style></legend>

                        <tbody id='1ayby'></tbody>

                        <i id='1ayby'><tr id='1ayby'><dt id='1ayby'><q id='1ayby'><span id='1ayby'><b id='1ayby'><form id='1ayby'><ins id='1ayby'></ins><ul id='1ayby'></ul><sub id='1ayby'></sub></form><legend id='1ayby'></legend><bdo id='1ayby'><pre id='1ayby'><center id='1ayby'></center></pre></bdo></b><th id='1ayby'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1ayby'><tfoot id='1ayby'></tfoot><dl id='1ayby'><fieldset id='1ayby'></fieldset></dl></div>
                            <bdo id='1ayby'></bdo><ul id='1ayby'></ul>

                            <tfoot id='1ayby'></tfoot>
                          • 主站蜘蛛池模板: 国产精品久久国产愉拍 | 99爱在线免费观看 | 国产高清在线精品 | 久久美女网 | 日韩第一区 | 一区二区在线免费观看 | 婷婷开心激情综合五月天 | 欧美视频精品 | 日韩不卡在线观看 | 一级爱爱片 | 超碰一区二区 | 亚洲精品456 | 美日韩免费视频 | 国产免费va | 亚洲 中文 欧美 日韩 在线观看 | 一区二区三区国产精品 | 欧美性tv | 99精品在线免费观看 | 免费精品 | 国产91观看 | 五月天天色 | 奇米影视首页 | 亚洲一区视频在线 | 91在线视频精品 | 久草资源在线 | 99影视| 日韩在线免费视频 | 日韩视频在线一区 | 在线国产小视频 | 欧美精品福利 | 日日骑| 国内自拍偷拍一区 | 久久午夜精品福利一区二区 | 国产日韩欧美一区 | 91久久精品日日躁夜夜躁欧美 | 国产视频二区 | 在线免费观看黄a | 欧美高清免费 | 极品粉嫩国产48尤物在线播放 | 亚洲一区中文字幕 | 狠狠爱免费视频 |