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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com