主頁 > 資料庫 > “[AppDelegate視窗]:無法識別的選擇器已發送到實體”自0.69.6到0.70.2版本以來的AppClip和任何其他目標的錯誤

“[AppDelegate視窗]:無法識別的選擇器已發送到實體”自0.69.6到0.70.2版本以來的AppClip和任何其他目標的錯誤

2022-10-18 06:01:16 資料庫

我正在開發帶有 App Clip 版本的輔助專案 iOS 應用程式,我已經成功地在版本 0.69.4 的 React Native 專案上創建了 App Clip,我在 0.70 版本之后又回到了該專案 - 我想創建新的在更新我之前從頭開始專案,我發現我們在干凈的新專案原因和運行時錯誤上創建應用剪輯的相同步驟:執行緒 1:“-[AppDelegate 視窗]:無法識別的選擇器發送到實體 0x600000dbc060”

我已經對從 0.69.4 到 0.70.1 的每個補丁/版本進行了一些研究測驗,我發現補丁 0.69.5 作業正常,但下一個補丁 - 0.69.6 破壞了一些東西,并且更新仍然存在錯誤版本。我已經確認,通過在版本 0.69.6 上使用 App Clip(步驟如下所述)創建新專案并在版本 0.69.5 到 0.69.6 上使用 App Clip 目標更新作業專案 - 更新后我遇到了問題。

我還嘗試在 0.69.6 版本專案上添加的新 App 目標上加載 React Native,就像在:https ://reactnative.dev/docs/integration-with-existing-apps 它基本上回傳相同的錯誤。

這些是我在 React Native 中創建 App Clip 的步驟:

  1. 我從干凈的 React Native 專案開始,安裝 pod 等
  2. 我在 Xcode 中打開專案并添加新目標 - App Clip - 帶有“Clip”名稱 - 例如“ArticleTest5Clip” 在我的 0.69.6 版本中
  3. 我正在向 Podfile 添加新目標以在“完整”React Native App 中繼承 Pod:
  target 'ArticleTest5Tests' do
    inherit! :complete
    # Pods for testing
  end
  
  target 'ArticleTest5Clip' do
    inherit! :complete
  end
  1. 我再次運行 pod install
  2. 然后我將此代碼添加到 ViewController 以將 RN Javascript 代碼加載到應用程式中:
#import "ViewController.h"
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)loadView {
  #if DEBUG
  // For DEBUG configuration, javascript will be loaded from index file
  NSURL *jsCodeLocation = [[RCTBundleURLProvider sharedSettings]
jsBundleURLForBundleRoot:@"index"];
  #else
  // For RELEASE configuration, js code is bundled and main.jsbundle file is created
  NSURL *jsCodeLocation = [[NSBundle mainBundle]
URLForResource:@"main" withExtension:@"jsbundle"];
  #endif

  // Value of moduleName should be equal to appName value set in index file
  RCTRootView *rootView = [[RCTRootView alloc]
initWithBundleURL:jsCodeLocation moduleName:@"ArticleTest5"
initialProperties:nil launchOptions:nil];
  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f
green:1.0f blue:1.0f alpha:1];
  self.view = rootView;
}


- (void)viewDidLoad {
    [super viewDidLoad];
}

@end
  1. 并將此代碼添加到 Info.plist 以允許應用程式加載:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>NSAppClip</key>
    <dict>
        <key>NSAppClipRequestEphemeralUserNotification</key>
        <false/>
        <key>NSAppClipRequestLocationConfirmation</key>
        <false/>
    </dict>
  <key>NSAppTransportSecurity</key>
  <dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
      <key>localhost</key>
      <dict>
        <key>NSExceptionAllowsInsecureHTTPLoads</key>
        <true/>
      </dict>
    </dict>
  </dict>
  <key>UIViewControllerBasedStatusBarAppearance</key>
  <false/>
    <key>UIApplicationSceneManifest</key>
    <dict>
        <key>UIApplicationSupportsMultipleScenes</key>
        <false/>
        <key>UISceneConfigurations</key>
        <dict>
            <key>UIWindowSceneSessionRoleApplication</key>
            <array>
                <dict>
                    <key>UISceneConfigurationName</key>
                    <string>Default Configuration</string>
                    <key>UISceneDelegateClassName</key>
                    <string>SceneDelegate</string>
                    <key>UISceneStoryboardFile</key>
                    <string>Main</string>
                </dict>
            </array>
        </dict>
    </dict>
</dict>
</plist>
  1. 然后,我將“完整”應用程式的構建階段中的“Start Packager”和“Bundle React Native 代碼和影像”階段復制到 App Clip 目標中。

我正在為 0.69.5 和 0.69.6 版本的專案執行相同的步驟。第一個作業正常 - App Clip 正在加載 index.js 就像 Full App 但第二個回傳提到的錯誤,這是完整的錯誤日志:

2022-09-30 12:19:59.421480 0200 ArticleTest5Clip[33519:262543] [native] Running application ArticleTest5 ({
    initialProps =     {
    };
    rootTag = 1;
})
2022-09-30 12:19:59.634352 0200 ArticleTest5Clip[33519:262543] -[AppDelegate window]: unrecognized selector sent to instance 0x600003b78100
2022-09-30 12:19:59.671473 0200 ArticleTest5Clip[33519:262543] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppDelegate window]: unrecognized selector sent to instance 0x600003b78100'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000112f8b604 __exceptionPreprocess   242
    1   libobjc.A.dylib                     0x0000000110466a45 objc_exception_throw   48
    2   CoreFoundation                      0x0000000112f9a5ba  [NSObject(NSObject) instanceMethodSignatureForSelector:]   0
    3   UIKitCore                           0x00000001268b22d5 -[UIResponder doesNotRecognizeSelector:]   264
    4   CoreFoundation                      0x0000000112f8f93e ___forwarding___   830
    5   CoreFoundation                      0x0000000112f91d48 _CF_forwarding_prep_0   120
    6   ArticleTest5Clip                    0x000000010525e442 -[RCTDeviceInfo _interfaceOrientationDidChange]   146
    7   ArticleTest5Clip                    0x000000010525e373 __46-[RCTDeviceInfo interfaceOrientationDidChange]_block_invoke   51
    8   ArticleTest5Clip                    0x000000010521c768 RCTExecuteOnMainQueue   56
    9   ArticleTest5Clip                    0x000000010525e2fa -[RCTDeviceInfo interfaceOrientationDidChange]   106
    10  CoreFoundation                      0x0000000112eca09d __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__   12
    11  CoreFoundation                      0x0000000112eca063 ___CFXRegistrationPost_block_invoke   49
    12  CoreFoundation                      0x0000000112ec95b0 _CFXRegistrationPost   496
    13  CoreFoundation                      0x0000000112ec8ee6 _CFXNotificationPost   822
    14  Foundation                          0x000000011101ef4c -[NSNotificationCenter postNotificationName:object:userInfo:]   82
    15  UIKitCore                           0x000000012687542a -[UIApplication _stopDeactivatingForReason:]   1456
    16  UIKitCore                           0x0000000125dee9f2 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]   333
    17  UIKitCore                           0x0000000125deed9a -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]   831
    18  UIKitCore                           0x0000000125dee647 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]   354
    19  UIKitCore                           0x0000000125df8a8f __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke   178
    20  UIKitCore                           0x00000001262c5b01  [BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]   859
    21  UIKitCore                           0x00000001263ffa19 _UISceneSettingsDiffActionPerformChangesWithTransitionContext   246
    22  UIKitCore                           0x0000000125df8713 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]   346
    23  UIKitCore                           0x0000000125bf5af5 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.578   796
    24  UIKitCore                           0x0000000125bf44c7 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]   253
    25  UIKitCore                           0x0000000125bf56b5 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]   255
    26  UIKitCore                           0x00000001262f6f5b -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:]   478
    27  FrontBoardServices                  0x0000000114c3e683 -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:]   521
    28  FrontBoardServices                  0x0000000114c6c1a1 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2   133
    29  FrontBoardServices                  0x0000000114c4c0ef -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]   209
    30  FrontBoardServices                  0x0000000114c6c0e9 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke   372
    31  libdispatch.dylib                   0x0000000110515a5b _dispatch_client_callout   8
    32  libdispatch.dylib                   0x000000011051893b _dispatch_block_invoke_direct   295
    33  FrontBoardServices                  0x0000000114c90da3 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__   30
    34  FrontBoardServices                  0x0000000114c90c99 -[FBSSerialQueue _targetQueue_performNextIfPossible]   174
    35  FrontBoardServices                  0x0000000114c90dcb -[FBSSerialQueue _performNextFromRunLoopSource]   19
    36  CoreFoundation                      0x0000000112ef84a7 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__   17
    37  CoreFoundation                      0x0000000112ef839f __CFRunLoopDoSource0   180
    38  CoreFoundation                      0x0000000112ef786c __CFRunLoopDoSources0   242
    39  CoreFoundation                      0x0000000112ef1f68 __CFRunLoopRun   871
    40  CoreFoundation                      0x0000000112ef1704 CFRunLoopRunSpecific   562
    41  GraphicsServices                    0x0000000114212c8e GSEventRunModal   139
    42  UIKitCore                           0x000000012687a65a -[UIApplication _run]   928
    43  UIKitCore                           0x000000012687f2b5 UIApplicationMain   101
    44  ArticleTest5Clip                    0x0000000104c24fbe main   110
    45  dyld                                0x000000010fce0f21 start_sim   10
    46  ???                                 0x000000020796b51e 0x0   8717251870
    47  ???                                 0x0000000207966000 0x0   8717230080
)
libc  abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/dawidzawada/Library/Developer/Xcode/DerivedData/ArticleTest5-gtoxgttlbehhsucnekylisnihcuv/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/dawidzawada/Library/Developer/Xcode/DerivedData/ArticleTest5-gtoxgttlbehhsucnekylisnihcuv/Build/Products/Debug-iphonesimulator
terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AppDelegate window]: unrecognized selector sent to instance 0x600003b78100'
CoreSimulator 802.6.1 - Device: iPhone 12 (43970D63-5D9E-41AA-A999-37726BA8A7F1) - Runtime: iOS 15.5 (19F70) - DeviceType: iPhone 12

0.69.6 版的相同步驟導致錯誤可能是什么問題?我可以得到一些提示如何解決這個問題嗎?

這是我的輸出npx react-native info

System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1
    Memory: 116.86 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - /opt/homebrew/bin/node
    Yarn: 1.22.18 - /opt/homebrew/bin/yarn
    npm: 8.15.0 - /opt/homebrew/bin/npm
    Watchman: 2022.08.22.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8815526
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.14.1 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

從損壞的回購中重現錯誤的步驟:

  • 復制損壞的回購
  • 紗線安裝
  • 光碟
  • 吊艙安裝
  • 在 XCode 中打開 ios/ArticleTest5.xcworkspace
  • 選擇 ArticleTest5Clip 目標并單擊運行
  • 應該拋出錯誤。

存盤庫:

  • 作業應用程式剪輯專案回購 - 0.69.5: https ://github.com/dawidzawada/ArticleTest4
  • Broken App Clip 專案 repo = 0.69.6: https ://github.com/dawidzawada/ArticleTest5

我還在 react-native 的 github 上提出了一個問題,但反應團隊還沒有回應:https ://github.com/facebook/react-native/issues/34823

有人可以確認損壞的回購在其他環境中也失敗了嗎?我想知道是否有某種方法可以跟蹤錯誤/問題。Xcode 控制臺日志沒有指向任何東西。

錯誤截圖

uj5u.com熱心網友回復:

有人在 GitHub 問題上找到了解決方案!https://github.com/facebook/react-native/issues/34823#issuecomment-1279650588

需要做的就是將 App Clip 的 AppDelegate.h 更改為:

#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>

@property (nonatomic, strong) UIWindow *window;

@end

轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/516263.html

標籤:IOS目标-c反应式苹果-appclips

上一篇:iOS15及更高版本的底部工具列為黑色

下一篇:讓.NET控制臺應用程式在VisualStudio中讀取secrets.json所需的步驟

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • GPU虛擬機創建時間深度優化

    **?桔妹導讀:**GPU虛擬機實體創建速度慢是公有云面臨的普遍問題,由于通常情況下創建虛擬機屬于低頻操作而未引起業界的重視,實際生產中還是存在對GPU實體創建時間有苛刻要求的業務場景。本文將介紹滴滴云在解決該問題時的思路、方法、并展示最終的優化成果。 從公有云服務商那里購買過虛擬主機的資深用戶,一 ......

    uj5u.com 2020-09-10 06:09:13 more
  • 可編程網卡芯片在滴滴云網路的應用實踐

    **?桔妹導讀:**隨著云規模不斷擴大以及業務層面對延遲、帶寬的要求越來越高,采用DPDK 加速網路報文處理的方式在橫向縱向擴展都出現了局限性。可編程芯片成為業界熱點。本文主要講述了可編程網卡芯片在滴滴云網路中的應用實踐,遇到的問題、帶來的收益以及開源社區貢獻。 #1. 資料中心面臨的問題 隨著滴滴 ......

    uj5u.com 2020-09-10 06:10:21 more
  • 滴滴資料通道服務演進之路

    **?桔妹導讀:**滴滴資料通道引擎承載著全公司的資料同步,為下游實時和離線場景提供了必不可少的源資料。隨著任務量的不斷增加,資料通道的整體架構也隨之發生改變。本文介紹了滴滴資料通道的發展歷程,遇到的問題以及今后的規劃。 #1. 背景 資料,對于任何一家互聯網公司來說都是非常重要的資產,公司的大資料 ......

    uj5u.com 2020-09-10 06:11:05 more
  • 滴滴AI Labs斬獲國際機器翻譯大賽中譯英方向世界第三

    **桔妹導讀:**深耕人工智能領域,致力于探索AI讓出行更美好的滴滴AI Labs再次斬獲國際大獎,這次獲獎的專案是什么呢?一起來看看詳細報道吧! 近日,由國際計算語言學協會ACL(The Association for Computational Linguistics)舉辦的世界最具影響力的機器 ......

    uj5u.com 2020-09-10 06:11:29 more
  • MPP (Massively Parallel Processing)大規模并行處理

    1、什么是mpp? MPP (Massively Parallel Processing),即大規模并行處理,在資料庫非共享集群中,每個節點都有獨立的磁盤存盤系統和記憶體系統,業務資料根據資料庫模型和應用特點劃分到各個節點上,每臺資料節點通過專用網路或者商業通用網路互相連接,彼此協同計算,作為整體提供 ......

    uj5u.com 2020-09-10 06:11:41 more
  • 滴滴資料倉庫指標體系建設實踐

    **桔妹導讀:**指標體系是什么?如何使用OSM模型和AARRR模型搭建指標體系?如何統一流程、規范化、工具化管理指標體系?本文會對建設的方法論結合滴滴資料指標體系建設實踐進行解答分析。 #1. 什么是指標體系 ##1.1 指標體系定義 指標體系是將零散單點的具有相互聯系的指標,系統化的組織起來,通 ......

    uj5u.com 2020-09-10 06:12:52 more
  • 單表千萬行資料庫 LIKE 搜索優化手記

    我們經常在資料庫中使用 LIKE 運算子來完成對資料的模糊搜索,LIKE 運算子用于在 WHERE 子句中搜索列中的指定模式。 如果需要查找客戶表中所有姓氏是“張”的資料,可以使用下面的 SQL 陳述句: SELECT * FROM Customer WHERE Name LIKE '張%' 如果需要 ......

    uj5u.com 2020-09-10 06:13:25 more
  • 滴滴Ceph分布式存盤系統優化之鎖優化

    **桔妹導讀:**Ceph是國際知名的開源分布式存盤系統,在工業界和學術界都有著重要的影響。Ceph的架構和演算法設計發表在國際系統領域頂級會議OSDI、SOSP、SC等上。Ceph社區得到Red Hat、SUSE、Intel等大公司的大力支持。Ceph是國際云計算領域應用最廣泛的開源分布式存盤系統, ......

    uj5u.com 2020-09-10 06:14:51 more
  • es~通過ElasticsearchTemplate進行聚合~嵌套聚合

    之前寫過《es~通過ElasticsearchTemplate進行聚合操作》的文章,這一次主要寫一個嵌套的聚合,例如先對sex集合,再對desc聚合,最后再對age求和,共三層嵌套。 Aggregations的部分特性類似于SQL語言中的group by,avg,sum等函式,Aggregation ......

    uj5u.com 2020-09-10 06:14:59 more
  • 爬蟲日志監控 -- Elastc Stack(ELK)部署

    傻瓜式部署,只需替換IP與用戶 導讀: 現ELK四大組件分別為:Elasticsearch(核心)、logstash(處理)、filebeat(采集)、kibana(可視化) 下載均在https://www.elastic.co/cn/downloads/下tar包,各組件版本最好一致,配合fdm會 ......

    uj5u.com 2020-09-10 06:15:05 more
最新发布
  • day02-2-商鋪查詢快取

    功能02-商鋪查詢快取 3.商鋪詳情快取查詢 3.1什么是快取? 快取就是資料交換的緩沖區(稱作Cache),是存盤資料的臨時地方,一般讀寫性能較高。 快取的作用: 降低后端負載 提高讀寫效率,降低回應時間 快取的成本: 資料一致性成本 代碼維護成本 運維成本 3.2需求說明 如下,當我們點擊商店詳 ......

    uj5u.com 2023-04-20 08:33:24 more
  • MySQL中binlog備份腳本分享

    關于MySQL的二進制日志(binlog),我們都知道二進制日志(binlog)非常重要,尤其當你需要point to point災難恢復的時侯,所以我們要對其進行備份。關于二進制日志(binlog)的備份,可以基于flush logs方式先切換binlog,然后拷貝&壓縮到到遠程服務器或本地服務器 ......

    uj5u.com 2023-04-20 08:28:06 more
  • day02-短信登錄

    功能實作02 2.功能01-短信登錄 2.1基于Session實作登錄 2.1.1思路分析 2.1.2代碼實作 2.1.2.1發送短信驗證碼 發送短信驗證碼: 發送驗證碼的介面為:http://127.0.0.1:8080/api/user/code?phone=xxxxx<手機號> 請求方式:PO ......

    uj5u.com 2023-04-20 08:27:27 more
  • 快取與資料庫雙寫一致性幾種策略分析

    本文將對幾種快取與資料庫保證資料一致性的使用方式進行分析。為保證高并發性能,以下分析場景不考慮執行的原子性及加鎖等強一致性要求的場景,僅追求最終一致性。 ......

    uj5u.com 2023-04-20 08:26:48 more
  • sql陳述句優化

    問題查找及措施 問題查找 需要找到具體的代碼,對其進行一對一優化,而非一直把關注點放在服務器和sql平臺 降低簡化每個事務中處理的問題,盡量不要讓一個事務拖太長的時間 例如檔案上傳時,應將檔案上傳這一步放在事務外面 微軟建議 4.啟動sql定時執行計劃 怎么啟動sqlserver代理服務-百度經驗 ......

    uj5u.com 2023-04-20 08:26:35 more
  • 云時代,MySQL到ClickHouse資料同步產品對比推薦

    ClickHouse 在執行分析查詢時的速度優勢很好的彌補了MySQL的不足,但是對于很多開發者和DBA來說,如何將MySQL穩定、高效、簡單的同步到 ClickHouse 卻很困難。本文對比了 NineData、MaterializeMySQL(ClickHouse自帶)、Bifrost 三款產品... ......

    uj5u.com 2023-04-20 08:26:29 more
  • sql陳述句優化

    問題查找及措施 問題查找 需要找到具體的代碼,對其進行一對一優化,而非一直把關注點放在服務器和sql平臺 降低簡化每個事務中處理的問題,盡量不要讓一個事務拖太長的時間 例如檔案上傳時,應將檔案上傳這一步放在事務外面 微軟建議 4.啟動sql定時執行計劃 怎么啟動sqlserver代理服務-百度經驗 ......

    uj5u.com 2023-04-20 08:25:13 more
  • Redis 報”OutOfDirectMemoryError“(堆外記憶體溢位)

    Redis 報錯“OutOfDirectMemoryError(堆外記憶體溢位) ”問題如下: 一、報錯資訊: 使用 Redis 的業務介面 ,產生 OutOfDirectMemoryError(堆外記憶體溢位),如圖: 格式化后的報錯資訊: { "timestamp": "2023-04-17 22: ......

    uj5u.com 2023-04-20 08:24:54 more
  • day02-2-商鋪查詢快取

    功能02-商鋪查詢快取 3.商鋪詳情快取查詢 3.1什么是快取? 快取就是資料交換的緩沖區(稱作Cache),是存盤資料的臨時地方,一般讀寫性能較高。 快取的作用: 降低后端負載 提高讀寫效率,降低回應時間 快取的成本: 資料一致性成本 代碼維護成本 運維成本 3.2需求說明 如下,當我們點擊商店詳 ......

    uj5u.com 2023-04-20 08:24:03 more
  • day02-短信登錄

    功能實作02 2.功能01-短信登錄 2.1基于Session實作登錄 2.1.1思路分析 2.1.2代碼實作 2.1.2.1發送短信驗證碼 發送短信驗證碼: 發送驗證碼的介面為:http://127.0.0.1:8080/api/user/code?phone=xxxxx<手機號> 請求方式:PO ......

    uj5u.com 2023-04-20 08:23:11 more