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

Network voting data storage method and device

A network voting and data storage technology, applied in the field of network voting, can solve the problems of slow data access and high cost of network voting data, and achieve the effects of avoiding data loss, saving costs and ensuring access speed

Inactive Publication Date: 2014-10-01
GUANGZHOU HUADUO NETWORK TECH
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem of high cost and write amplification when the voting system uses SSD for storage in the prior art, and the slow access speed of network voting data when using mechanical disk for storage, the embodiment of the present invention provides a network Voting data storage method and device

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
  • Network voting data storage method and device
  • Network voting data storage method and device
  • Network voting data storage method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051]An embodiment of the present invention provides a method for storing network voting data, which is suitable for a network voting server, see figure 2 , the method includes:

[0052] Step 101: Map the voting storage file in the disk of the network voting server into memory, the voting storage file includes: voting activity identification, voting option identification, and the number of votes corresponding to the voting option identification.

[0053] Specifically, the disk mentioned here is an ordinary mechanical hard disk. The voting activity identifier is used to indicate the voting activity corresponding to the voting storage file, and each voting storage file corresponds to a voting activity. Voting option identifiers are the identifiers of options that voters can vote for in a poll.

[0054] Step 102: Receive voting information sent by the client. The voting information includes: a voting activity ID, a selected voting option ID, and a number of votes correspondin...

Embodiment 2

[0062] An embodiment of the present invention provides a method for storing network voting data, which is suitable for a network voting server, see image 3 , the method includes:

[0063] Step 201: Obtain the configuration of the voting activity, the configuration of the voting activity includes the identification of the voting activity, the number of voting options, and the storage path of the voting storage file corresponding to the identification of the voting activity.

[0064] Specifically, each voting option of a voting activity corresponds to a voting storage file. Each voting storage file has a voting activity ID, and the data in the memory can be written to the voting storage file in the disk according to the voting activity ID. The storage path of the voting storage file is the location of the voting storage file in the disk.

[0065] Step 202: Determine whether there is a voting storage file on the storage path of the voting storage file; if there is a voting sto...

Embodiment 3

[0096] An embodiment of the present invention provides a network voting data storage device, suitable for network voting servers, see Figure 4 , the device consists of:

[0097] The mapping module 301 is configured to map the voting storage file in the disk of the network voting server into the memory, and the voting storage file includes: a voting activity identifier, a voting option identifier, and the number of votes corresponding to the voting option identifier.

[0098] Specifically, the disk mentioned here is an ordinary mechanical hard disk. The voting activity identifier is used to indicate the voting activity corresponding to the voting storage file, and each voting storage file corresponds to a voting activity. Voting option identifiers are the identifiers of options that voters can vote for in a poll.

[0099] The receiving module 302 is configured to receive voting information sent by the client. The voting information includes: a voting activity identifier, a s...

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 discloses a network voting data storage method and device and belongs to the technical field of network voting. The network voting data storage method includes that mapping a voting storage file in a disk of a network server into a memory, wherein the voting storage file comprises a voting activity sign, voting option signs and votes corresponding to the voting option signs; receiving voting information from a client, wherein the voting information comprises a voting activity sign, selected voting option signs and votes corresponding to each selected voting option sign; updating the votes corresponding to the voting option sign in the voting storage file in the memory according to the voting option sign and voting votes in the voting information; writing the voting storage file in the memory into the disk. The network voting data storage method and device enable the data accessing speed to be guaranteed, avoid the problem of data loss due to program crash, power failure or other faults, and do not need to use an SSD so that the cost is saved.

Description

technical field [0001] The invention relates to the technical field of network voting, in particular to a method and device for storing network voting data. Background technique [0002] Online voting is a social network service centered on voting. The voting and billing of online voting are controlled by the server, and the server also assumes the role of checking votes. Online voting has the characteristics of high throughput and high real-time performance. Therefore, for the network voting server, the read and write performance of the storage module in the server affects the access speed of the server to the network voting data, and has a great influence on the throughput and real-time performance of the network voting. [0003] At present, storage modules in servers generally include mechanical disks, memory, solid-state hard disks, etc. Among them, storage based on mechanical disks has a slow access speed. For memory-based storage, failures such as program crashes or ...

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): G06F3/06
Inventor 黄伟
Owner GUANGZHOU HUADUO NETWORK TECH
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