首页> 外国专利> Apparatus and method for efficiently managing data in a social networking service

Apparatus and method for efficiently managing data in a social networking service

机译:用于有效管理社交网络服务中的数据的设备和方法

摘要

An apparatus, method, and machine-readable medium are described for managing data within a friend service. In one embodiment, a key/value data store can be used to provide an efficient and highly-scalable friend service database. Various techniques can be used to ensure data consistency between friend service data records. For example, in one embodiment, operations are detected which require updates to a plurality of related friend state records. A key may be generated to represent each of the operations and then used to create an entry in a write-ahead log database. In one embodiment, each entry in the write-ahead log database may specify the operation to be performed on the friend state records. If the plurality of friend state records are successfully updated, then the entry in the write-ahead log database may be deleted. However, if the plurality of friend state records are not successfully completed, then the entry is not deleted from the write-ahead log database. The friend state records associated with old entries in the write-ahead log database are checked for consistency and inconsistent records are repaired. In addition, optimistic locking techniques may be used in one embodiment to improve performance of the friend service database.
机译:描述了用于管理朋友服务内的数据的设备,方法和机器可读介质。在一个实施例中,键/值数据存储库可用于提供有效且高度可扩展的朋友服务数据库。可以使用各种技术来确保朋友服务数据记录之间的数据一致性。例如,在一个实施例中,检测需要更新多个相关的朋友状态记录的操作。可以生成一个密钥来表示每个操作,然后将其用于在预写日志数据库中创建一个条目。在一个实施例中,预写日志数据库中的每个条目可以指定要在朋友状态记录上执行的操作。如果成功地更新了多个朋友状态记录,则可以删除预写日志数据库中的条目。但是,如果未成功完成多个朋友状态记录,则不会从预写日志数据库中删除该条目。检查与预写日志数据库中的旧条目关联的朋友状态记录的一致性,并修复不一致的记录。另外,在一个实施例中可以使用乐观锁定技术来改善朋友服务数据库的性能。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号