小编MSK*_*MSK的帖子

Oracle-如何检查max_string_size是标准的还是扩展的

我是甲骨文的新手,也许我的问题是最容易的,但我找不到答案.我想检查max_string_size.有没有有用的系统查询?亲切的问候,谢谢.

oracle

5
推荐指数
2
解决办法
8038
查看次数

通过 DocumentReference 监听 firestore 时将打开多少个套接字

我是 Cloud Firestore 的新手。当我阅读文档时,我看到了下面的代码:

DocumentReference docRef = db.Collection("cities").Document("SF");
FirestoreChangeListener listener = docRef.Listen(snapshot =>
{
    Console.WriteLine("Callback received document snapshot.");
    Console.WriteLine("Document exists? {0}", snapshot.Exists);
    if (snapshot.Exists)
    {
        Console.WriteLine("Document data for {0} document:", snapshot.Id);
        Dictionary<string, object> city = snapshot.ToDictionary();
        foreach (KeyValuePair<string, object> pair in city)
        {
            Console.WriteLine("{0}: {1}", pair.Key, pair.Value);
        }
    }
});
Run Code Online (Sandbox Code Playgroud)

实际上,我知道如何通过过滤查询进行侦听并侦听查询快照中的所有 300 条记录,但是即使只有一个文档更新,查询也会读取所有记录,并且会显着增加读取计数(成本也会增加)。

如果我有 300 个文档,并且我想通过文档参考快照收听所有文档的实时更新,该怎么办? 会有 300 个独立的套接字还是一个单例套接字来监听所有这些套接字。C# 驱动程序和 Flutter 驱动程序行为相同吗?

实施将是这样的;

foreach (var docRef in docRefList) //300 records
{
    FirestoreChangeListener listener = docRef.Listen(snapshot =>
    {
        Console.WriteLine("Callback received document …
Run Code Online (Sandbox Code Playgroud)

c# firebase flutter google-cloud-firestore

3
推荐指数
1
解决办法
1068
查看次数

如何使用 Azure Active Directory 设置 Ocelot Api 网关

我遵循教程并设法将 api 与 Azure Active Directory 身份验证和授权结合使用。

但是我想从 Ocelot Api Gateway 后面使用 api。我可以将 ocelot 与自定义基本授权一起使用,但无法与 Azure Active Directory 一起使用。

我已经将 Ocelot api 网关 url 添加到我的 api 重定向 url 列表中。

我应该如何在 config.json 和 Ocelot Api Gateway 项目 StartUp.cs 中设置 ReRoutes 值?

任何帮助将不胜感激。

azure azure-active-directory asp.net-core asp.net-core-webapi ocelot

2
推荐指数
1
解决办法
2539
查看次数