azure - OfflineSync azure mobile 的过度延迟 - XamarinForms
问题描述
我正在尝试提取记录并存储在本地,以支持离线功能。
但是从服务器获取记录需要太多时间,有时它没有完成同步过程。即使我尝试添加条件以仅同步少量记录但没有运气!
我们将定义表:
public void DefineTables(MobileServiceSQLiteStore store)
{
//store.DefineTable<TodoItem>();
store.DefineTable<User>();
}
我们将通过创建查询和查询名称来提取记录:
public async Task GetTableDetails<T>(ICloudService cloudService, Expression<Func<T, bool>> filter = null) where T : AtekMobile.Abstractions.TableData
{
var table = await cloudService.GetSyncTableAsync<T>();
var query = filter != null
? table.MobileServiceSyncTable.CreateQuery().Where(filter)
: table.MobileServiceSyncTable.CreateQuery();
var queryName = GetQueryName<T>();
await table.PullAsync(queryName, query);
}
我错过了什么吗?有人遇到过这个问题吗?难道我做错了什么?如果我遗漏任何东西,请告诉我。同步记录需要很长时间。
提前致谢!
解决方案
推荐阅读
- google-cloud-platform - 代码:EXTERNAL_RESOURCE_NOT_FOUND;消息:资源'
-compute@developer.gserviceaccount.com' 类型为 'serviceAccount' 未找到 - flutter - StreamBuilder 完全加载后有没有办法获得回调?
- amazon-web-services - 当节点数超过一个时,Redislabs UI 日志记录错误
- asp.net-core - 网络核心中的数据注释不适用于列表
- javascript - Nodemails 给我 TypeError [ERR_INVALID_ARG_TYPE]:“路径”参数必须是字符串类型。接收类型未定义
- python - 在此类查询中查找或聚合
- grub - 创建一个自动检测 EFI 系统并启动第一个系统的 grub 脚本
- api - 如何使用 Vtiger API 在修改时间上查询模块(潜力)
- python - 英特尔实感 - 在两个 numpy 数组中对齐深度和颜色
- python - discord.ext.commands.errors.CommandNotFound:找不到命令“平衡”