Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File query method and device, computer device and storage medium

A query method and file technology, which is applied in the field of computer networks, can solve the problems of high memory and CPU consumption of the query system, difficulty in implementing filtering strategies, and high pressure on the database, etc.

Inactive Publication Date: 2019-07-12
SHENZHEN ONETHING TECH CO LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) When the number of devices corresponding to a single file is huge, a single query needs to obtain all device names from the database, which puts a lot of pressure on the database
[0006] (2) When a large number of files are queried concurrently, the memory and CPU consumption of the query system itself is huge
[0007] (3) Files cannot achieve complementary effects between devices in regions and operators
[0008] (4) The balancing strategy and filtering strategy of storage devices are difficult to implement

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File query method and device, computer device and storage medium
  • File query method and device, computer device and storage medium
  • File query method and device, computer device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] figure 1 It is a flow chart of the file query method provided by the embodiment of the present invention. The file query method is applied to a computer device (such as a scheduling server), and is used to query network nodes that store specified files and meet preset conditions according to the file query request of the requester, and return the queried network nodes to the requester. In this embodiment, the network node may be a personal cloud disk, such as a player cloud. There are multiple network nodes. Each network node belongs to a network operator. Each network node stores multiple files.

[0065] Referring to 1, the file query method specifically includes the following steps:

[0066] S101. Receive a file query request from a requesting party.

[0067] The file query request includes the file name of the specified file. The file query request is used to request to query a specified file. For example, the requester sends a file query request for video A. ...

Embodiment 2

[0104] figure 2 It is a flowchart of a file query method provided by another embodiment of the present invention. Referring to 2, the file query method specifically includes the following steps:

[0105] S201. Receive a file query request from a requesting party.

[0106] Step S201 in this embodiment is consistent with step S101 in Embodiment 1. For details, please refer to the relevant description of Step S101 in Embodiment 1, which will not be repeated here.

[0107] S202. Determine the query priority of each network node according to the area and operator to which the requester belongs and the area and operator to which each network node storing the file specified in the file query request belongs.

[0108] Step S202 in this embodiment is consistent with step S102 in Embodiment 1. For details, please refer to the relevant description of Step S102 in Embodiment 1, which will not be repeated here.

[0109] S203. Select a network node with specified query priority from the...

Embodiment 3

[0144] image 3 A structural diagram of a file query device provided by an embodiment of the present invention. The file query device 30 is applied to computer equipment (such as a scheduling server), and is used to query network nodes that store specified files and meet preset conditions according to the file query request of the requester, and return the queried network nodes to the requester. In this embodiment, the network node may be a personal cloud disk, such as a player cloud. There are multiple network nodes. Each network node belongs to a network operator. Each network node stores multiple files.

[0145] Such as image 3 As shown, the file query device 30 may include: a receiving unit 301 , a determining unit 302 , a querying unit 303 , and a returning unit 304 . The query unit 303 includes: a first selection subunit 3031 , a second selection subunit 3032 , and a screening subunit 3033 .

[0146] The receiving unit 301 is configured to receive a file query req...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a file query method. The file query method comprises the following steps: receiving a file query request of a requester; determining a query priority of each network node storing a file specified by the file query request; selecting network nodes with specified query priorities according to the sequence of the query priorities from high to low; randomly selecting a single group of network nodes with the total number of query nodes from the network nodes with the specified query priority; selecting a group of network nodes from the randomly selected network nodes, and screening out the network nodes meeting the first condition from the selected network nodes to serve as target nodes; and returning the target node to the requester. The invention further provides a filequery device, a computer device and a storage medium. The network nodes between different regional operators in the file query process can be balanced and complementary.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a file query method and device, a computer device and a computer-readable storage medium. Background technique [0002] The existing file query system uses the file name, area, and operator as keys, and the device name storing the file as a value, and stores the corresponding relationship between the file name, area, operator, and device name in a database. In an actual application scenario, there are millions of files, and each file corresponds to a certain number of storage devices (ie, network nodes), and multiple files are stored on a single storage device at the same time. [0003] When receiving an external request to obtain a storage device that meets certain conditions, the existing file query solution is to take out all storage devices corresponding to the file, region, and operator, and traverse them in turn until the number of devices that meet the conditions...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/13G06F16/172G06F16/182
Inventor 杜武航
Owner SHENZHEN ONETHING TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products