如何在Azure搜索中重命名索引(How to rename index in Azure Search)
根据我们的业务逻辑,每晚Web作业删除索引并创建新索引并填充它。 但最近我们注意到填充索引大约需要一个小时。 因此,在此期间,我们没有任何生产工作指数。 所以目前我们正在考虑以下变化:
我们的生产指数名称是'prodindex'。 我们首先要创建名为'prodindex1'的索引,填充它,如果一切正常,请删除索引'prodindex'并将索引'prodindex1'重命名为'prodindex'。
但现在我面临的问题是我无法重命名索引。 那么在Azure搜索中是否可以重命名索引?
According to our business logic every night web job deletes index and creates new one and populates it. But lately we've noticed that populating index takes about one hour. So during this time we don't have any working index in production. So currently we are thinking over the following changes:
Name of our production index is 'prodindex'. We want firstly to create index with name 'prodindex1', populate it and if everything is ok delete index 'prodindex' and rename index 'prodindex1' to 'prodindex'.
But now i facet problem that i can't rename index. So is it possible in Azure Search to rename index?
原文:https://stackoverflow.com/questions/46100551
最满意答案
在上面链接的iOS应用程序编程指南中,查看子标题“在后台执行有限长度任务”下的“后台执行和多任务”部分:
过渡到后台的应用程序可能需要额外的时间来完成任何重要的最后时刻任务。 要请求后台执行时间,请调用UIApplication类的beginBackgroundTaskWithExpirationHandler:方法。 如果您的应用在任务正在进行时移至背景,或者您的应用已在后台,此方法会延迟您的应用暂停。 如果您的应用正在执行一些重要任务(如将用户数据写入磁盘或从网络服务器下载重要文件),这可能很重要。
这给你10分钟的背景时间来做你想做的事情。 如果您注意到,Dropbox只会继续传输10分钟,然后您需要重新启动应用才能继续传输。
In the iOS App Programming Guide, which you linked to above, look in the section "Background Execution and Multitasking" under the subheading "Executing a Finite-Length Task in the Background":
Apps that are transitioning to the background can request an extra amount of time to finish any important last-minute tasks. To request background execution time, call the beginBackgroundTaskWithExpirationHandler: method of the UIApplication class. If your app moves to the background while the task is in progress, or if your app was already in the background, this method delays the suspension of your app. This can be important if your app is performing some important task, such as writing user data to disk or downloading an important file from a network server.
This gives you 10 minutes of background time to do what you want. If you notice, Dropbox will only continue transferring for 10 minutes, and then you need to restart the app to get it to continue.
相关问答
更多-
您所要做的就是运行一个后台服务,它将检查您的数据库表中是否有行,然后如果存在,它将继续上载并从表中完成后删除每一行 编辑 如果您的应用程序完全关闭,您的服务无法继续运行,我建议您使用“同步到云”功能检查此处它包含必要的机制大多数应用程序使用它DropBox也认为 all you have to do is run a background service which will check if your database table has rows in it then if exists it will ...
-
我认为Dropbox中有一个关于此的示例,请尝试检查此链接dropbox示例 你需要看到2个文件PicassoClient.java和FileThumbnailRequestHandler.java i think there is a sample from dropbox about this, try to check this link dropbox sample there is 2 files that you need to see PicassoClient.java And FileTh ...
-
Dropbox如何在后台同步照片并获得苹果的批准?(How does dropbox sync photos in background and get approved from apple?)[2024-01-31]
在上面链接的iOS应用程序编程指南中,查看子标题“在后台执行有限长度任务”下的“后台执行和多任务”部分: 过渡到后台的应用程序可能需要额外的时间来完成任何重要的最后时刻任务。 要请求后台执行时间,请调用UIApplication类的beginBackgroundTaskWithExpirationHandler:方法。 如果您的应用在任务正在进行时移至背景,或者您的应用已在后台,此方法会延迟您的应用暂停。 如果您的应用正在执行一些重要任务(如将用户数据写入磁盘或从网络服务器下载重要文件),这可能很重要。 这 ... -
经过一番挖掘后,我找到了答案:我的问题是SDK版本。 在我使用的版本(1.7)中没有这样的东西(你可以在这里查看 )。 但是,当您将版本更新为1.8时,您可以找到它: DbxEntry.File.PhotoInfo After some digging I found an answer: my problem was SDK version. In version that I used (1.7) there was no such thing (you can check it here). Howe ...
-
您需要在AppDelegate.m具有以下代码: - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url sourceApplication:(NSString *)source annotation:(id)annotation { DBAccount *account = [[DBAccountManager sharedManager] handleOpenURL:url]; if (account) { ...
-
同步Podio和Dropbox(Syncing Podio and Dropbox)[2020-01-06]
你可以用zapier做到这一点,它允许你免费获得5次zaps,而免费版本每15分钟一次拉动更改 You can do that with zapier it will allow you to have 5 zaps for free but also the free version pull the changes every 15 minutes -
雅在某些情况下是可能的。 它是如何实现Core和Sync在一起,因为它需要很多工作。 我会建议你检查这里 我想你会在这里找到你的答案。 Ya it is possible in some cases. It is How you implement both Core and Sync together, as it requires lots of work. I will suggest you to check HERE I think you will find your answer here.
-
如果您有手机,可以使用FBAB备份您的Facebook照片。 Android , iOS If you have a phone, you can use FBAB to backup your facebook photos. Android , iOS
-
Android中的文件/数据库SkyDrive / Dropbox同步(SkyDrive / Dropbox Sync for Files/Database in Android)[2023-08-18]
你在buildPath中以正确的方式添加了dropbox-android-sdk.jar吗? DropboxAPI JAR文件应该在libs /文件夹中,而不是lib /。 试试这个并告诉我它现在是否有效...... PS:我正在使用DropboxAPI for android,他们的代码非常适合我,他们的文档非常适合做自己的应用程序。 Do you add the dropbox-android-sdk.jar in your buildPath and in a correct way ? The Dr ... -
**编辑:2017年7月** Dropbox API v1现已弃用,因此我们必须使用API v2进行迁移 时间线 2016年6月28日 :API v1已弃用。 2016年9月28日 :如果您尚未确认弃用,您的应用的新用户将在链接其Dropbox帐户时看到警告。 2017年3月28日 :如果您尚未确认已弃用,那么所有将Dropbox帐户链接到您的应用的用户都将收到一封警告电子邮件。 2017年6月28日 :API v1端点已关闭。 根据时间线,现在api v1不再工作,api v2完全激活。 目前'com.d ...