Patent ID: 11934292
Assignee: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. A non-transitory computer-readable storage medium storing a computer instruction, wherein the computer instruction is configured to cause a computer to perform the following steps:
collecting users of each of versions of an application by using a log collector and uploading the users of each of the versions of the application to a distributed storage device by using the log collector;
multiplying a sampling proportion and a total number of users of the versions of the application in the distributed storage device to obtain a sampling number;
determining, in order of the versions of the application in the distributed storage device from new to old, whether a number of users of a first latest version of the application in the distributed storage device is greater than or equal to the sampling number; in the case where the number of users of the first latest version of the application in the distributed storage device is greater than or equal to the sampling number, determining the first latest version of the application from the versions of the application in the distributed storage device; in the case where the number of users of the first latest version of the application in the distributed storage device is less than the sampling number, determining, in the order of the versions of the application in the distributed storage device from new to old, whether a sum of the number of users of the first latest version of the application in the distributed storage device and a number of users of a second latest version of the application in the distributed storage device is greater than or equal to the sampling number; in the case where the sum of the number of users of the first latest version of the application in the distributed storage device and the number of users of the second latest version of the application in the distributed storage device is greater than or equal to the sampling number, determining the first latest version of the application and the second latest version of the application from the versions of the application in the distributed storage device; in the case where the sum of the number of users of the first latest version of the application in the distributed storage device and the number of users of the second latest version of the application in the distributed storage device is less than the sampling number, determining, in the order of the versions of the application in the distributed storage device from new to old, whether a sum of the number of users of the first latest version of the application in the distributed storage device, the number of users of the second latest version of the application in the distributed storage device, and a number of users of a third latest version of the application in the distributed storage device is greater than or equal to the sampling number, until at least one version of the application in the distributed storage device where a sum of a number of users is greater than or equal to the sampling number is determined from the versions of the application in the distributed storage device; and
determining users whose number is the sampling number from users of the at least one version of the application in the distributed storage device where the sum of the number of users is greater than or equal to the sampling number as sampling objects;
wherein the sampling proportion is a quotient of a number of users of the first latest version of the application in the distributed storage device when a speed of an increase in a number of users of the first latest version of the application in the distributed storage device first begins to slow down after the first latest version of the application in the distributed storage device is released divided by the total number of users of the versions of the application in the distributed storage device.