当列表页面从每 10 分钟更新一次的数据库中提取数据时,如何在表单提交后在列表页面上显示更改的数据库行?
我有一个列表页面,它是从查询到查询数据存储(例如:solr)构建的,该查询数据存储每 10 分钟从主(关系)数据库(批量)更新一次。
当用户点击一行的“编辑”(或者点击“创建”创建新行)时,在提交编辑/创建表单后,主库中的行会实时更新,但查询数据存储(EG:solr)在另外 10 分钟内未更新。
我遇到的问题是列表页面仍会显示过时的结果集(10 分钟前更新),因此用户可能在另外 10 分钟内看不到更改的行。
有没有办法确保用户能够实时看到他的更改,即使列表页面继续从查询数据存储(例如:solr)进行查询?
I have a listings page which is built from a query to a query data store (EG: solr) that is updated (in bulk) every 10 minutes from the primary (relational) database.
When a user clicks on 'edit' for a row (or clicks on 'create' to create a new row), after he submits the edit/create form, the row in the primary database is updated in real-time, but the query data store (EG: solr) is not updated for up to another 10 minutes.
The problem I have is that the listings page would still be displaying the stale result set (updated 10 minutes ago), so the user may not see his changed row for up to another 10 minutes.
Is there a way I can ensure that the user will be able to see his changes in real-time, even though the listings page continues to query from the query data store (EG: solr)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论