CN109542988A - A kind of update method and electronic equipment of big data - Google Patents
A kind of update method and electronic equipment of big data Download PDFInfo
- Publication number
- CN109542988A CN109542988A CN201811223551.9A CN201811223551A CN109542988A CN 109542988 A CN109542988 A CN 109542988A CN 201811223551 A CN201811223551 A CN 201811223551A CN 109542988 A CN109542988 A CN 109542988A
- Authority
- CN
- China
- Prior art keywords
- user
- file
- filename
- uploaded
- uploads
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The present invention discloses the update method and electronic equipment of a kind of big data, wherein method comprising steps of A, when logging in system by user, judge whether user has operating right;B, when user has operating right, the selected upper arq mode of user is obtained;C, when upper arq mode is that increment uploads, judge whether the filename for the file that user uploads is consistent with the filename of the file to be replaced, if the filename for the file that user uploads is consistent with the filename of the file to be replaced, covering upload is carried out, and refreshes CDN caching;When upper arq mode is that non-increment uploads, then assigning remote warehouse is uploaded to.Map datum is hosted on CDN by the present invention, and map datum and project are removed, and the compressed package for coming out packing is smaller, to reach the first screen loading velocity of raising, achievees the purpose that optimization user experience.It, can oriented cover update and without changing file address;Saving is exploited natural resources, and development efficiency and maintenance efficiency are improved.
Description
Technical field
The present invention relates to field of computer technology more particularly to the update methods and electronic equipment of a kind of big data.
Background technique
In general, in the exploration project of related map datum (data are larger, can also claim big data), map datum is
It is stored in the project of front end, will cause that the compressed package that project is packaged out is bigger, and loading velocity is slow in this way, poor user experience.
In addition, updating each time because state administration area and cartographic information can update often, entire front end project is required
Hair version is carried out, causes development efficiency and maintenance efficiency lower.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of update method of big data and electronics
Equipment, it is intended to solve the problems such as relevant exploration project exploitation of map datum in the prior art is low with maintenance efficiency.
Technical scheme is as follows:
A kind of update method of big data, wherein comprising steps of
A, when logging in system by user, judge whether user has operating right;
B, when user has operating right, the selected upper arq mode of user is obtained;
C, when upper arq mode is that increment uploads, judge the filename for the file that user uploads and the file to be replaced
Whether filename is consistent, if the filename for the file that user uploads is consistent with the filename of the file to be replaced, is covered
Biography is covered, and refreshes CDN caching;When upper arq mode is that non-increment uploads, then assigning remote warehouse is uploaded to.
The update method of the big data, wherein the step A is specifically included:
A1, SK, AK under acquisition CDN account and assigning remote warehouse;
A2, the voucher uploaded according to described SK, AK and assigning remote warehouse setting client;
A3, when logging in system by user, judge whether user has operating right according to the voucher.
The update method of the big data, wherein in the step C, when upper arq mode be non-increment upload when, then on
The step of reaching assigning remote warehouse specifically includes:
C1, check whether uploaded file is existing in assigning remote warehouse;
If C2, the file uploaded are existing in assigning remote warehouse, terminate process, if the file uploaded is referring to
Determine to be not present in remote warehouse, then file is directly uploaded to assigning remote warehouse.
The update method of the big data, wherein in the step C, covered by pre-set script
It passes.
The update method of the big data, wherein in the step C, refresh CDN caching and specifically include: it is former to remove CDN
Have and caches and be updated.
The update method of the big data, wherein in the step C, when carrying out covering upload, call the API of CDN
Interface is uploaded.
The update method of the big data, wherein in the step C, after covering uploads, record uploaded file
Filename, file size and hash.
A kind of electronic equipment, wherein include:
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
When logging in system by user, judge whether user has operating right;
When user has operating right, the selected upload mode of user is obtained;
When the mode of upload is that increment uploads, judge that the filename for the file that user uploads is with the filename to be replaced
It is no consistent;
If the filename for the file that user uploads is consistent with the filename to be replaced, covering upload is carried out, and refresh
CDN caching.
A kind of non-volatile computer readable storage medium storing program for executing, wherein the non-volatile computer readable storage medium storing program for executing is deposited
Computer executable instructions are contained, when which is executed by one or more processors, may make described one
A or multiple processors execute the update method of the big data.
A kind of computer program product, wherein non-volatile computer is readable to be deposited computer program product including being stored in
Computer program on storage media, computer program include program instruction, when program instruction is executed by processor, make the place
Manage the update method that device executes the big data.
The utility model has the advantages that map datum is hosted on CDN by the present invention, map datum and project are removed, come out packing
Compressed package it is smaller, to reach the first screen loading velocity of raising, achieve the purpose that optimize user experience.And without changing file
Address, can oriented cover update;Saving is exploited natural resources, and development efficiency and maintenance efficiency are improved.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the update method preferred embodiment of big data of the present invention.
Fig. 2 is the structural block diagram of a kind of electronic equipment preferred embodiment of the present invention.
Specific embodiment
The present invention provides the update method and electronic equipment of a kind of big data, for make the purpose of the present invention, technical solution and
Effect is clearer, clear, and the present invention is described in more detail below.It should be appreciated that specific embodiment described herein
It is only used to explain the present invention, be not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of the update method preferred embodiment of big data of the present invention comprising step
It is rapid:
S1, when logging in system by user, judge whether user has operating right;
S2, when user have operating right when, obtain the selected upper arq mode of user;
S3, when upper arq mode be increment upload when, judge user upload file filename and the file to be replaced
Filename it is whether consistent, if user upload file filename it is consistent with the filename of the file to be replaced, carry out
Covering uploads, and refreshes CDN caching;When upper arq mode is that non-increment uploads, then assigning remote warehouse is uploaded to.
Map datum is hosted on CDN by the present invention, and map datum and project are removed, and makes to be packaged the compressed package come out more
It is small, to reach the first screen loading velocity of raising, optimize the purpose of user experience.It is and without changing file address, i.e., orientable
Covering updates;Saving is exploited natural resources, and development efficiency and maintenance efficiency are improved.
In the step S1, in logging in system by user, first judge whether it has operating right.
Specifically, the step S1 is specifically included:
S11, SK, AK under acquisition CDN account and assigning remote warehouse;
S12, the voucher uploaded according to described SK, AK and assigning remote warehouse setting client;
S13, when logging in system by user, judge whether user has operating right according to the voucher.
In the step S11, SK and AK is first obtained, wherein SK refers to that SecretKey, AK refer to AccessKey, remotely
Warehouse refers to bucketName, i.e. upload space.
The account is the account of CDN.
Using SecretKey as parameter, cooperate signature algorithm appropriate, the digital signature of available raw information prevents
Content is forged or distorts in transmittance process.
Above-mentioned key is usually creation in pairs and uses, and includes AccessKey and SecretKey.Wherein
AccessKey can include in the transmission, and user must take good care of SecretKey not in transmission over networks to prevent from being stolen.
If SecretKey is stolen by malicious third parties, data leak risk very serious may cause.Therefore, as found
SecretKey is illegally used, and administrator should replace key on developer's platform at the first time.
Certain transmitting assembly further includes uploaderURL, i.e., on by reference.
According to the SDK of the CDN manufacturer of introducing, voucher is obtained, and the voucher is transferred to front end.
The server-side of service server, which generates, uploads token (uploadToken).
Client-side program (iOS, Android and Web) obtains can directly will be on file after this uploads token
Pass to CDN.
In the step S2, when user has operating right, the selected upper arq mode of user is obtained.
In the present invention, upper arq mode has arq mode on increment, also has arq mode on non-increment, arq mode is on non-increment
It is common to upload.Arq mode refers to carry out difference update on increment, rather than arq mode is then that full dose uploads on increment, in contrast,
Its loading velocity of arq mode is slow on non-increment, and the compressed package after packing is bigger, and efficiency is lower, and arq mode can then mention on increment
High loading velocity reduces compressed package, transfer efficiency in raising.
When upper arq mode is that non-increment uploads, then the step of being uploaded to assigning remote warehouse, specifically includes:
S31, check whether uploaded file is existing in assigning remote warehouse;
If S32, the file uploaded are existing in assigning remote warehouse, terminate process, if the file uploaded exists
Assigning remote is not present in warehouse, then file is directly uploaded to assigning remote warehouse.
I.e. if when upper arq mode is that non-increment uploads, first judge that the file to be uploaded is in assigning remote warehouse
It is no existing, if had existed, without continuing to upload, directly terminate process.If the file for asking for upload is referring to
Determine to be not present in remote warehouse, then file can be uploaded directly into assigning remote warehouse.
When upper arq mode is that increment uploads, then the filename for the file that user uploads and the file to be replaced first are judged
Filename it is whether consistent, if user upload file filename it is consistent with the filename of the file to be replaced, carry out
Covering uploads, and refreshes CDN caching.
In the present invention, it is that covering upload is carried out by pre-set script, transfer efficiency can be improved in this way.
Further, in the step S3, refresh CDN caching and specifically include: removing the original caching of CDN and be updated.
Further, in the step S3, when carrying out covering upload, the api interface of CDN is called to be uploaded.Such as make
Move, force and prefetch method in API are called with script, realizes without changing file address, removes CDN node
Caching, oriented cover update.Since state administration area and cartographic information can update often, entire front end project is updated each time
Hair version will be carried out, through the invention without sending out version, reduces potential risk.
Further, in the step S3, after covering uploads, record the filename of uploaded file, file size and
hash.It can specifically be recorded by a file table, to maintain easily and manage.
Through the invention, the volume of project packet is reduced to 85k by original 330k, and volume reduces 75%, user's access
Big data display screen speed is obviously accelerated, and the user experience is improved.
For project without sending out version, updating maintenance becomes simpler, can be safeguarded by special operation personnel.This is because
When big data display screen is updated, process before is that developer is needed to import map resource file, and root in the project
The renaming of corresponding document is carried out according to map administrative region rule, and after using script to upload, script can be used by operation personnel
It is updated, developer is freed, saving is exploited natural resources.
The present invention also provides a kind of electronic equipment 10, as shown in Fig. 2, comprising:
Processor 110 is adapted for carrying out each instruction, and
Equipment 120 is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor 110:
When logging in system by user, judge whether user has operating right;
When user has operating right, the selected upload mode of user is obtained;
When the mode of upload is that increment uploads, judge that the filename for the file that user uploads is with the filename to be replaced
It is no consistent;
If the filename for the file that user uploads is consistent with the filename to be replaced, covering upload is carried out, and refresh
CDN caching.
The processor 110 can for general processor, digital signal processor (DSP), specific integrated circuit (ASIC),
Field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC Machine) or other programmable logic device are divided
Any combination of vertical door or transistor logic, discrete hardware component or these components.In addition, processor can also be any
Conventional processors, microprocessor or state machine.Processor also may be implemented as calculating the combination of equipment, for example, DSP and Wei Chu
Manage combination, multi-microprocessor, one or more microprocessors combination DSP core, any other this configuration of device.
It stores equipment 120 and is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software
Program, non-volatile computer executable program and module, the update method such as the big data in the embodiment of the present invention are corresponding
Program instruction.Processor is stored in non-volatile software program, instruction and unit in storage equipment by operation, thus
The various function application and data processing of the update method of big data are executed, i.e. realization above method embodiment.
It has been described in detail in the method for particular technique details in front about above-mentioned electronic equipment 10, so it will not be repeated.
The present invention also provides a kind of non-volatile computer readable storage medium storing program for executing, the non-volatile computer readable storage
Media storage has computer executable instructions, when which is executed by one or more processors, may make
One or more of processors execute the update method of the big data.
The present invention also provides a kind of computer program product, computer program product includes being stored in non-volatile computer
Computer program on readable storage medium storing program for executing, computer program include program instruction, when program instruction is executed by processor, are made
The processor executes the update method of the big data.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of update method of big data, which is characterized in that comprising steps of
A, when logging in system by user, judge whether user has operating right;
B, when user has operating right, the selected upper arq mode of user is obtained;
C, when upper arq mode is that increment uploads, judge the filename for the file that user uploads and the file of the file to be replaced
Whether name is consistent, if the filename for the file that user uploads is consistent with the filename of the file to be replaced, is covered
It passes, and refreshes CDN caching;When upper arq mode is that non-increment uploads, then assigning remote warehouse is uploaded to.
2. the update method of big data according to claim 1, which is characterized in that the step A is specifically included:
A1, SK, AK under acquisition CDN account and assigning remote warehouse;
A2, the voucher uploaded according to described SK, AK and assigning remote warehouse setting client;
A3, when logging in system by user, judge whether user has operating right according to the voucher.
3. the update method of big data according to claim 1, which is characterized in that in the step C, when upper arq mode is
When non-increment uploads, then the step of being uploaded to assigning remote warehouse, specifically includes:
C1, check whether uploaded file is existing in assigning remote warehouse;
If C2, the file uploaded are existing in assigning remote warehouse, terminate process, if the file uploaded is specified remote
It is not present in Cheng Cangku, then file is directly uploaded to assigning remote warehouse.
4. the update method of big data according to claim 1, which is characterized in that in the step C, by presetting
Script carry out covering upload.
5. the update method of big data according to claim 1, which is characterized in that in the step C, refresh CDN caching
It specifically includes: removing the original caching of CDN and be updated.
6. the update method of big data according to claim 1, which is characterized in that in the step C, on being covered
When biography, the api interface of CDN is called to be uploaded.
7. the update method of big data according to claim 1, which is characterized in that in the step C, uploaded in covering
Afterwards, filename, file size and the hash of uploaded file are recorded.
8. a kind of electronic equipment characterized by comprising
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
When logging in system by user, judge whether user has operating right;
When user has operating right, the selected upload mode of user is obtained;
When upload mode be increment upload when, judge user upload file filename and the filename to be replaced whether one
It causes;
If the filename for the file that user uploads is consistent with the filename to be replaced, covering upload is carried out, and it is slow to refresh CDN
It deposits.
9. a kind of non-volatile computer readable storage medium storing program for executing, which is characterized in that the non-volatile computer readable storage medium
Matter is stored with computer executable instructions, when which is executed by one or more processors, may make institute
State the update method that one or more processors perform claim requires the described in any item big datas of 1-7.
10. a kind of computer program product, which is characterized in that computer program product can including being stored in non-volatile computer
The computer program on storage medium is read, computer program includes program instruction, when program instruction is executed by processor, makes institute
State the update method that processor perform claim requires the described in any item big datas of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811223551.9A CN109542988A (en) | 2018-10-19 | 2018-10-19 | A kind of update method and electronic equipment of big data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811223551.9A CN109542988A (en) | 2018-10-19 | 2018-10-19 | A kind of update method and electronic equipment of big data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109542988A true CN109542988A (en) | 2019-03-29 |
Family
ID=65844308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811223551.9A Pending CN109542988A (en) | 2018-10-19 | 2018-10-19 | A kind of update method and electronic equipment of big data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109542988A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110055312A1 (en) * | 2009-08-28 | 2011-03-03 | Apple Inc. | Chunked downloads over a content delivery network |
CN102571709A (en) * | 2010-12-16 | 2012-07-11 | 腾讯科技(北京)有限公司 | Method for uploading file, client, server and system |
CN104092726A (en) * | 2014-06-09 | 2014-10-08 | 乐视网信息技术(北京)股份有限公司 | Automatic replacing method and apparatus of same-name file |
CN105049486A (en) * | 2015-06-16 | 2015-11-11 | 腾讯科技(北京)有限公司 | Version management and file pulling control methods for static files, version management and file pulling control devices, and version control system |
CN106528125A (en) * | 2016-10-26 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Data file incremental updating method, server, client and system |
CN107733700A (en) * | 2017-09-28 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of remote reflash method and system of separate unit, bulk service device BMC |
-
2018
- 2018-10-19 CN CN201811223551.9A patent/CN109542988A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110055312A1 (en) * | 2009-08-28 | 2011-03-03 | Apple Inc. | Chunked downloads over a content delivery network |
CN102571709A (en) * | 2010-12-16 | 2012-07-11 | 腾讯科技(北京)有限公司 | Method for uploading file, client, server and system |
CN104092726A (en) * | 2014-06-09 | 2014-10-08 | 乐视网信息技术(北京)股份有限公司 | Automatic replacing method and apparatus of same-name file |
CN105049486A (en) * | 2015-06-16 | 2015-11-11 | 腾讯科技(北京)有限公司 | Version management and file pulling control methods for static files, version management and file pulling control devices, and version control system |
CN106528125A (en) * | 2016-10-26 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Data file incremental updating method, server, client and system |
CN107733700A (en) * | 2017-09-28 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of remote reflash method and system of separate unit, bulk service device BMC |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11171982B2 (en) | Optimizing ingestion of structured security information into graph databases for security analytics | |
CN107729352B (en) | Page resource loading method and terminal equipment | |
EP3794487B1 (en) | Obfuscation and deletion of personal data in a loosely-coupled distributed system | |
CN104220987B (en) | Using the method and system installed | |
US9244960B2 (en) | Metadata-driven version management service in pervasive environment | |
EP3716123A1 (en) | File packing and file package unpacking method and apparatus, and network device | |
CN103425491A (en) | Game engine | |
US10831892B2 (en) | Web browser script monitoring | |
CN107836101A (en) | Goodwill for URL | |
US20200266971A1 (en) | Re-encrypting data on a hash chain | |
CN109542862B (en) | Method, device and system for controlling mounting of file system | |
CN106897607A (en) | A kind of method for monitoring application program and device | |
CN109802919A (en) | A kind of web page access interception method and device | |
CN110135201A (en) | A kind of webpage evidence collecting method and device based on independent operating environment | |
CN113343312A (en) | Page tamper-proofing method and system based on front-end point burying technology | |
US9160804B2 (en) | Web storage optimization | |
US20040143586A1 (en) | Method of controlling user application program | |
CN110046510B (en) | Cross-cloud data migration method, device and system | |
CN109542988A (en) | A kind of update method and electronic equipment of big data | |
CN107085681B (en) | Robust computing device identification framework | |
CN108008984A (en) | A kind of resource file downloading updating method and device | |
CN109936528A (en) | Monitoring method, device, equipment and system | |
US11556649B2 (en) | Methods and apparatus to facilitate malware detection using compressed data | |
CN110032832B (en) | Web application processing method and device | |
CN107085689B (en) | Method and device for carrying out encryption protection on picture resources in Flash |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |