CN105959407A - Data uploading method and apparatus - Google Patents

Data uploading method and apparatus Download PDF

Info

Publication number
CN105959407A
CN105959407A CN201610482361.3A CN201610482361A CN105959407A CN 105959407 A CN105959407 A CN 105959407A CN 201610482361 A CN201610482361 A CN 201610482361A CN 105959407 A CN105959407 A CN 105959407A
Authority
CN
China
Prior art keywords
data
described
uploaded
message group
server
Prior art date
Application number
CN201610482361.3A
Other languages
Chinese (zh)
Inventor
杨丹
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Priority to CN201610482361.3A priority Critical patent/CN105959407A/en
Publication of CN105959407A publication Critical patent/CN105959407A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/06Network-specific arrangements or communication protocols supporting networked applications adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/10Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network
    • H04L67/1097Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network for distributed storage of data in a network, e.g. network file system [NFS], transport mechanisms for storage area networks [SAN] or network attached storage [NAS]

Abstract

The invention discloses a data uploading method, and belongs to the technical field of information communication. The data uploading method comprises the steps of: receiving a data information block uploaded by a client on the basis of a preset integration rule; according to the integration rule, splitting the data information block into a plurality of pieces of data; and respectively processing each piece of the data and forming a processing result. According to the technical scheme of the invention, by receiving a plurality of pieces of data for once in a manner of the data information block, the data uploading method reduces the probability of generating undesirable phenomena of frequent shaking of a server, a huge pressure of the server and even crash which are caused by the case that in an existing data uploading method, only one piece of data can be uploaded for once and the server needs to shake frequently to upload massive data to be uploaded, and achieves the effects of effectively reducing shaking times of the server and reducing the pressure of the server when massive data to be uploaded exists.

Description

Data uploading method and device

Technical field

The present embodiments relate to ICT, particularly relate to a kind of data uploading method and device.

Background technology

In the current era of cloud outburst, user it is generally desirable to the network novel browsed, news, opinion Interesting data message in altar model, microblogging etc. uploads onto the server to preserve, thus reaches a day rear Just check or the purpose of many collaborative share inquiry.

Inventor, during realizing the present invention, finds that prior art has following defects that in prior art, Client, when uploading data to server, can only upload one every time.Further, in upload procedure, often Uploading a data, server is shaken once;When client has many data to need upload server, clothes Business device needs shake repeatedly, thus causes the pressure of server huge, even crashes.

Summary of the invention

The present invention provides a kind of data uploading method and device, to solve to reduce server because uploading the bar of data Number is numerous, causes server to shake problem frequently, to alleviate the pressure of server.

First aspect, embodiments provides a kind of data uploading method, and this data uploading method includes:

Receive the data message group that client is uploaded based on default integration rules;

According to described integration rules, described data message assembling and dismantling are divided into many data;

Respectively each described data are processed, form result.

Further, respectively each described data are processed, form result and include:

Judge that each described data have been stored in server the most, the data not stored are stored, and will The storage state of each described data is as result.

Further, respectively each described data are processed, after forming result, also include:

The result of each described data is integrated based on described integration rules, forms processing result information Group, is sent to client.

Further, according to described integration rules, it is divided into a plurality of data to include described data message assembling and dismantling:

According to described integration rules, from described data message group, carry out key word identification;

Data between each key word are split as wall scroll data.

Second aspect, the embodiment of the present invention provides again a kind of data uploading method, this data uploading method bag Include:

By at least two data to be uploaded based on default integration rules, it is integrally formed data message group;

Described data message group is uploaded to server.

Further, after described data message group is uploaded to server, also include:

Receive the processing result information group that described server returns, and split based on described integration rules.

Further, by least two data to be uploaded based on default integration rules, it is integrally formed data letter Breath group includes:

Using the key word in described integration rules as blank character, at least two data to be uploaded are respectively provided with Between blank character, it is integrally formed data message group.

Further, described by least two data to be uploaded based on default integration rules, be integrally formed number It is believed that breath group, also include:

When producing data and uploading demand, identify whether data to be uploaded meet integration condition;

If described data fit to be uploaded integrates condition, then by least two data to be uploaded based on default Integration rules, is integrally formed data message group.

Further, when producing data and uploading demand, identify whether data to be uploaded meet integration condition bag Include:

When producing data and uploading demand, identify the quantity of data to be uploaded, upload in destination address and classification At least one, if meet integration condition.

The third aspect, embodiments provides a kind of data uploading device, and this data uploading device includes:

Data message group receiver module, for receiving the data letter that client is uploaded based on default integration rules Breath group;

Described data message assembling and dismantling, for according to described integration rules, are divided into by data message assembling and dismantling sub-module Many data;

Data processing module, for processing each described data respectively, forms result.

Further, described data processing module specifically for:

Judge that each described data have been stored in server the most, the data not stored are stored, and will The storage state of each described data is as result.

Further, also include:

Result sending module, for respectively each described data being processed, after forming result, The result of each described data is integrated based on described integration rules, forms processing result information group, It is sent to client.

Further, described data message assembling and dismantling sub-module includes:

Key word recognition unit, for according to described integration rules, carries out key from described data message group Word identification;

Data split cells, for being split as wall scroll data by the data between each key word.

Fourth aspect, embodiments provides another kind of data uploading device, this data uploading device bag Include:

Data message group integrates module, is used at least two data to be uploaded based on default integration rules, It is integrally formed data message group;

Transmission module in data message group, for being uploaded to server by described data message group.

Further, also include:

Processing result information assembling and dismantling sub-module, after described data message group is uploaded to server, connects Receive the processing result information group that described server returns, and split based on described integration rules.

Further, described data message group integrate module specifically for:

Using the key word in described integration rules as blank character, at least two data to be uploaded are respectively provided with Between blank character, it is integrally formed data message group.

Further, described data message group integration module includes:

Integrate condition judgment unit, for when producing data and uploading demand, identifying whether data to be uploaded accord with Close integration condition;

Data message group integral unit, if integrating condition for described data fit to be uploaded, then will at least Article two, data to be uploaded are based on default integration rules, are integrally formed data message group.

Further, described integration condition judgment unit specifically for:

When producing data and uploading demand, identify the quantity of data to be uploaded, upload in destination address and classification At least one, if meet integration condition.

The embodiment of the present invention disposably receives many data by the way of with data message group, reduces existing Data uploading method because can only upload one every time, when data to be uploaded are numerous, server need shake Repeatedly, causing server shake frequently, server stress is huge, and it is several that the bad phenomenon even crashed occurs Rate, it is achieved that when data to be uploaded are numerous, effectively reduces server and shakes repeatedly, alleviate server stress Effect.

Accompanying drawing explanation

The flow chart of a kind of data uploading method that Fig. 1 provides for the embodiment of the present invention one;

The flow chart of a kind of data uploading method that Fig. 2 provides for the embodiment of the present invention two;

The flow chart of a kind of data uploading method that Fig. 3 provides for the embodiment of the present invention three;

The flow chart of a kind of data uploading method that Fig. 4 provides for the embodiment of the present invention four;

The flow chart of a kind of data uploading method that Fig. 5 provides for the embodiment of the present invention five;

The structural representation of a kind of data uploading device that Fig. 6 provides for the embodiment of the present invention six;

The structural representation of a kind of data uploading device that Fig. 7 provides for the embodiment of the present invention seven.

Detailed description of the invention

The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this Specific embodiment described by place is used only for explaining the present invention, rather than limitation of the invention.The most also need It is noted that for the ease of describing, accompanying drawing illustrate only part related to the present invention and not all knot Structure.

Embodiment one

The flow chart of a kind of data uploading method that Fig. 1 provides for the embodiment of the present invention one, the present embodiment can be fitted For there being mass data to need the situation of upload server, the method can be performed by server, specifically wraps Include following steps:

The data message group that S110, reception client are uploaded based on default integration rules.

The integration rules preset specifically refers to before data are uploaded, and what server and client were made an appointment is used as For many data to be uploaded are integrally formed data message group, and to the data message integrated Group carries out splitting the foundation obtaining many data.It should be noted that data mentioned here include but not It is limited to one or more in text chunk, picture, video documents or text document.

Integration rules can have multiple, such as, due to data self generally with identifying its start or end Key word, such as data A would generally be designated as<data A text>, and wherein "<" opens for being used for identifying data The identifier of head, " > ", for being used for identifying the identifier of the end of data, directly each data to be uploaded are arranged successively Row, form data message group.Or, identical content in each data to be uploaded is extracted, will respectively treat Pass different content in data to be arranged in order, form data message group, such as, exist " Zhang San, mobile phone: 111111 ", " Zhang San, family's base: 222222 " and " Zhang San, office's base: 333333 " three Bar data to be uploaded, when integrating, extract the identical content " Zhang San, " of this three data, by difference Appearance is arranged in order, and the data message group after being integrated is " Zhang San, mobile phone: 111111 bases: 222222 Office's base: 333333 ".

In addition to above-mentioned integration rules, it is also possible to using some specific key word as interval word, utilize these to close Each data to be uploaded are sequentially arranged at intervals by keyword, form data message group.Exemplarily, by " inter-< " As the key word started for flag data information group, by " >-inter " as flag data information The key word of group ending, uses "-inter-" as being used for distinguishing each data to be uploaded in data message group Key word.Exemplarily, when there are data a, data b and tri-data to be uploaded of data c, According to above-mentioned integration rules, can be by data message group that these three Data Integrations to be uploaded are following form:

Inter-<data a-inter-data b-inter-pass data c>-inter.

Further, it is also possible to when integrating, data are numbered, such as, will " inter-< " conduct use In the key word of flag data information group beginning, by " >-inter " end up as flag data information group Key word, before each data to be uploaded insert key word "-inter-N-", for as distinguish The key word of each data to be uploaded, wherein, N is positive integer, is which bar for representing the data being close to thereafter Data.When there are data a, data b and tri-data to be uploaded of data c, advise according to above-mentioned integration Then, can be by data message group that these three Data Integrations to be uploaded are following form:

Inter-<-inter-1-data a-inter-2-data b-inter-3-data c>-inter.

It should be noted that in this step, by " inter-< " starts as flag data information group Key word, by " >-inter " as the key word ended up for flag data information group, by "-inter-" Or "-inter-N-" is as distinguishing the key word of each data to be uploaded, these be only one of the present invention concrete Example, rather than limitation of the present invention.When specifically arranging, any character or character string conduct can be used Key word.

The concrete methods of realizing of this step is, when server receive client send based on default integration During data message group upload request after rules integration, receive this data message group;Or, server with The data message group after integrating is received based on default integration rules every the time of setting.

S120, according to described integration rules, described data message assembling and dismantling are divided into many data.

This step specifically performs process, according to described integration rules, closes from described data message group Then data between each key word are split as wall scroll data by keyword identification.

Exemplarily, certain data message group inter-<-inter-1-data is received when server A-inter-2-data b-inter-3-data c > after-inter, make an appointment with client according to server Integration rules, key word " inter-<" and ">-inter " is identified, determines data message group Beginning and end, key word "-inter-N-" is identified, so that these data message assembling and dismantling are divided simultaneously Be three data, respectively data a, data b and data c, wherein, data a be Article 1 data, Data b are Article 2 data and data c are Article 3 data.

S130, respectively each described data are processed, form result.

This step specifically performs process, after data message assembling and dismantling are divided into many data, judges each successively Data have been stored in server the most, the data not stored are stored, and by the storage shape of each data State is as result.

Specifically, if certain data is in time judging to be stored in server, it is not necessary to these data are protected Depositing, its storage state is " preserving ";If certain data is in time judging to be not stored in server, to this Data preserve.Further, if it preserves successfully on the server, its storage state is for " to preserve into Merit ";If it preserves failure on the server, its storage state is " preserving unsuccessfully ".Further, when State data memory is " preserving unsuccessfully ", it is also possible to will preserve failed reason as storage state simultaneously. Typically, it is also possible to utilize character or character string that the result of these data is marked, such as, use word Symbol " 0 " expression " preserves ", " preserves successfully " with character " 1 " expression, and with character " 2 " table Show " preserving unsuccessfully ".

The present embodiment technical scheme disposably receives many data by the way of with data message group, reduces Existing data uploading method is because can only upload one every time, and when data to be uploaded are numerous, server needs Shake repeatedly, causes server shake frequently, and server stress is huge, and the bad phenomenon even crashed occurs Probability, it is achieved that when data to be uploaded are numerous, effectively reduce server shake number of times, alleviate server The effect of pressure.

It should be noted that be disposed in server each data of comprising in the data message group received And after forming result, the result of each data can not be fed back to client, it is also possible to by each number According to result feed back to client.Compared with the result of each data not being fed back to client, will The result of each data feeds back to client, and user can be facilitated can be best understood from oneself wishing to upload The storage state of data, in order to user carries out next step operation according to the storage state of data.

Embodiment two

The flow chart of a kind of data uploading method that Fig. 2 provides for the embodiment of the present invention two.This method equally may be used To be performed by server.The present embodiment technical scheme, based on embodiment one technical scheme, has carried out excellent Change.On the basis of embodiment one, the present embodiment technical scheme also add further: by each described data Result integrate based on described integration rules, formed processing result information group, be sent to client. This data uploading method possesses and comprises the steps:

The data message group that S110, reception client are uploaded based on default integration rules.

It should be noted that here, the integration rules preset is except referring to before data are uploaded, and server is with objective Family end is made an appointment, and is used as many data to be uploaded are integrally formed data message group, to The data message group integrated carry out splitting obtain many data according to outward, also serve as a plurality of as server The result of data is integrated into the foundation of processing result information group.

S120, according to described integration rules, described data message assembling and dismantling are divided into many data.

S130, respectively each described data are processed, form result.

S140, the result of each described data being integrated based on described integration rules, formation processes knot Really information group, is sent to client.

Exemplarily, it is assumed that integration rules includes " inter-< < " is as labelling processing result information The key word of group beginning, by " > >-inter " as the key word ended up for labelling processing result information group, Will "--inter-N--" as the key word of the result of each data of differentiation.Certain data message group is carried out After fractionation, there are three data, wherein Article 1 data be data a, Article 2 data be data b with And Article 3 data are data c.Assume that the Article 1 data result with Article 2 data is for " to preserve into Merit ", the result of Article 3 data is " preserving ".When based on above-mentioned integration rules, to above-mentioned three When the result of data is integrated, above-mentioned each processing result information can be integrated into following form Processing result information group:

< <--inter-1--preserves successfully--inter-2--preserves successfully--, and inter-3--protects inter- Deposit >-inter.

It should be noted that in this step, " inter-< < " is as labelling processing result information group The key word of beginning, by " > >-inter " as the key word ended up for labelling processing result information group, Will "--inter-N--" as the key word of the result of each data of differentiation, these are only the one of the present invention Individual concrete example, rather than limitation of the present invention.When specifically arranging, any character or character can be used String is as key word.

It addition, in above-mentioned integration rules, for the key word of flag data information group beginning with for labelling The key word of processing result information group beginning can be identical, it is also possible to differs.Similarly, for reference numerals It is believed that the key word that breath group ends up can be identical with the key word ended up for labelling processing result information group, also Can differ;For distinguish each data key word and can for distinguishing the key word of each data processed result With identical, it is also possible to differ.

The present embodiment technical scheme by the result of each data being integrated based on described integration rules, Form processing result information group, be sent to client, wish so that user understands user by client The storage state of each data uploaded, in order to carry out subsequent operation, it addition, with directly by the process of each data Result sends the most one by one to be compared to client, and the technical program equally reduces server by result When sending client, the shake number of times of server, reduce the pressure of server.

Embodiment three

The flow chart of a kind of data uploading method that Fig. 3 provides for the embodiment of the present invention three, the present embodiment can be fitted For there being mass data to need the situation of upload server, the method can be performed by client, specifically wraps Include following steps:

S210, when producing data and uploading demand, by least two data to be uploaded based on default integration rule Then, data message group it is integrally formed.

The integration rules preset refers to that before data are uploaded, server is made an appointment with client, is used as Many data to be uploaded are integrally formed the foundation of data message group.

Integration rules can have multiple, such as, due to data self generally with identifying its start or end Key word, such as data A would generally be designated as<data A text>, and wherein "<" opens for being used for identifying data The identifier of head, " > ", for being used for identifying the identifier of the end of data, directly each data to be uploaded are arranged successively Row, form data message group.Or, identical content in each data to be uploaded is extracted, will respectively treat Pass different content in data to be arranged in order, form data message group, such as, exist " Zhang San, mobile phone: 111111 ", " Zhang San, family's base: 222222 " and " Zhang San, office's base: 333333 " three Bar data to be uploaded, when integrating, extract the identical content " Zhang San, " of this three data, by difference Appearance is arranged in order, and the data message group after being integrated is " Zhang San, mobile phone: 111111 bases: 222222 Office's base: 333333 ".

In addition to above-mentioned integration rules, it is also possible to using some specific key word as interval word, utilize these to close Each data to be uploaded are sequentially arranged at intervals by keyword, form data message group.Exemplarily, by " inter-< " As the key word started for flag data information group, by " >-inter " as flag data information The key word of group ending, uses "-inter-" as being used for distinguishing each data to be uploaded in data message group Key word.Exemplarily, when there are data a, data b and tri-data to be uploaded of data c, According to above-mentioned integration rules, can be by data message group that above-mentioned three Data Integrations to be uploaded are following form:

Inter-<data a-inter-data b-inter-data c>-inter.

Further, it is also possible to when integrating, data are numbered, such as, will " inter-< " conduct use In the key word of flag data information group beginning, by " >-inter " end up as flag data information group Key word, before each data to be uploaded insert key word "-inter-N-", for as distinguish The key word of each data to be uploaded, wherein, N is positive integer, is which bar for representing the data being close to thereafter Data.When there are data a, data b and tri-data to be uploaded of data c, advise according to above-mentioned integration Then, can be by data message group that these three Data Integrations to be uploaded are following form:

Inter-<-inter-1-data a-inter-2-data b-inter-3-data c>-inter.

It should be noted that in the present embodiment, by " inter-< " is as opening for flag data information group The key word of head, by " >-inter " as the key word ended up for flag data information group, by "-inter-" Or "-inter-N-" is as distinguishing the key word of each data to be uploaded, these be only one of the present invention concrete Example, rather than limitation of the present invention.When specifically arranging, any character or character string conduct can be used Key word.

The concrete execution method of this step is, using the key word in described integration rules as blank character, near Few two data to be uploaded are separately positioned between blank character, are integrally formed data message group.

Similarly, this step is said the data mentioned include but not limited to text chunk, picture, video documents or One or more in text document.

S220, described data message group is uploaded to server.

In the present embodiment technical scheme, client is when producing data and uploading demand, it is judged that data to be uploaded are No meeting integration condition, if meeting integration condition, each Data Integration to be uploaded being formed data message group, and With the form of data message group by each data upload server, reduce existing data uploading method because of every time Can only upload one, when data to be uploaded are numerous, server needs shake repeatedly, causes server to shake Frequently, server stress is huge, the bad phenomenon odds even crashed, it is achieved when data to be uploaded Time numerous, effectively reduce server shake number of times, alleviate the effect of server stress.

Embodiment four

The flow chart of a kind of data uploading method that Fig. 4 provides for the embodiment of the present invention four.This method equally may be used To be performed by client.The present embodiment technical scheme, based on embodiment three technical scheme, has carried out excellent Change.On the basis of embodiment three, the present embodiment technical scheme also add further: receives described service The processing result information group that device returns, and split based on described integration rules.

This data uploading method possesses and comprises the steps:

S210, when producing data and uploading demand, by least two data to be uploaded based on default integration rule Then, data message group it is integrally formed.

When producing data and uploading demand, by least two data to be uploaded based on default integration rules, whole Close and form data message group, alternatively, also include: when producing data and uploading demand, identify number to be uploaded According to whether meeting integration condition;If described data fit to be uploaded integrates condition, then at least two are treated Biography data, based on default integration rules, are integrally formed data message group.

Here, integration condition refers to the foundation integrated for judging data to be uploaded whether can carry out.Whole Conjunction condition is arranged before user end to server uploads data by server and client equally.Specifically, whole Conjunction condition can have multiple, and such as, the quantity of data to be uploaded is more than or equal to two, or number to be uploaded According to quantity be more than or equal to two and the destination address of data to be uploaded is consistent, also or data to be uploaded Quantity is more than or equal to two and the classification of data to be uploaded is mutually equal.Similarly, this step says mention Data include but not limited to one or more in text chunk, picture, video documents or text document.

When producing data and uploading demand, identify whether data to be uploaded meet integration condition, specifically refer to work as Produce data when uploading demand, identify the quantity of data to be uploaded, upload in destination address and classification at least One, it is judged that whether each data to be uploaded meet integration condition.

It addition, the integration rules preset is except referring to before data are uploaded, server is made an appointment with client, It is used as many data to be uploaded being integrally formed the foundation of data message group outward, also serves as to The data message group integrated carries out fractionation and obtains many data, and the result of many data is integrated into place Reason object information group, and processing result information assembling and dismantling are divided into the foundation of a plurality of result.

S220, described data message group is uploaded to server.

S230, receive the processing result information group that described server returns, and carry out based on described integration rules Split.

After receiving by the data message group of client upload, server is according to described integration rules, by institute State data message assembling and dismantling and be divided into many data, respectively each described data are processed, form result. The result of each described data is integrated by server based on described integration rules, forms result letter Breath group, is sent to client.

After client receives the processing result information group that server returns, tear open based on described integration rules Point.Exemplarily, it is assumed that integration rules includes " inter-< < " is as labelling processing result information The key word of group beginning, by " > >-inter " as the key word ended up for labelling processing result information group, Will "--inter-N--" as the key word of the result of each data of differentiation.Client receives server The processing result information group returned is: < <--inter-1--preserves successfully--inter-2--preserves into inter- Merit--inter-3--preserves > >-inter.After client receives above-mentioned processing result information group, based on Above-mentioned integration rules, carries out key word identification from described processing result information group, mainly identifies when identifying Key word " inter-<<", ">>-inter " and "--inter-N--".Then by each key word it Between data processed result be split as wall scroll.Above-mentioned processing result information group finally obtains three numbers after splitting According to result, respectively Article 1 data current storage status is for preserve successfully, and Article 2 data are currently deposited Storage state is for preserve successfully, and Article 3 data current storage status is for preserve.

It should be noted that in this step, " inter-< < " is as labelling processing result information group The key word of beginning, by " > >-inter " as the key word ended up for labelling processing result information group, Will "--inter-N--" as the key word of the result of each data of differentiation, these are only the one of the present invention Individual concrete example, rather than limitation of the present invention.When specifically arranging, any character or character can be used String is as key word.

It addition, for the key word of flag data information group beginning and start for labelling processing result information group Key word can be identical, it is also possible to differ.Similarly, for the key of flag data information group ending Word can be identical with the key word for the ending of labelling processing result information group, it is also possible to differs;For district The key word dividing each data can be identical with the key word being used for distinguishing each data processed result, it is also possible to not phase With.

The processing result information group that the present embodiment technical scheme is returned by the described server of reception, and based on institute State integration rules to split, so that user wishes the storage shape of each data uploaded by understanding user State, in order to carry out subsequent operation, it addition, compared with the result receiving each data one by one, this technical side Case equally reduces server time result is sent client, and the shake number of times of server reduces clothes The pressure of business device.

Embodiment five

The flow chart of the data uploading method that Fig. 5 provides for the embodiment of the present invention five.The present embodiment provides Data uploading method jointly performed by client and server.The present embodiment is with the various embodiments described above as base One concrete example of plinth.

The method specifically includes following steps:

S301, when produce data upload demand time, whether client identification data to be uploaded meet integration condition. If so, S302 is performed;Otherwise, S303 is performed.

At least two data to be uploaded based on default integration rules, are integrally formed data by S302, client Information group, is uploaded to server by described data message group, and performs S304.

Each data to be uploaded are uploaded to server by S303, client one by one, and perform S307.

After S304, server receive the data message group that client is uploaded based on default integration rules, foundation Described data message assembling and dismantling are divided into many data by described integration rules, respectively to each described data at Reason, forms result, and performs S305.

The result of each described data is integrated by S305, server based on described integration rules, is formed Processing result information group, is sent to client, and performs S306.

S306, client receive the processing result information group that described server returns, and integrate rule based on described Then split.

After S307, server receive many data of client upload, each described data are processed, shape Become result, the result of each described data is sent to client one by one, and performs S308.

S308, client receive result corresponding to each data that described server returns.

In the present embodiment technical scheme, when producing data and uploading demand, client judges that data to be uploaded are No meeting integration condition, if meeting integration condition, each Data Integration to be uploaded being formed data message group, and With the form of data message group by each data upload server, then by server to received data information Group carries out splitting, processing, and the data processed result of each data is integrated into the transmission of processing result information group To client, this processing result information group, after receiving this processing result information group, is split by client, With by the storage feedback of status of each data to user, reduce existing data uploading method because can only go up every time Passing one, when data to be uploaded are numerous, server needs shake repeatedly, causes server shake frequently, Server stress is huge, the bad phenomenon odds even crashed, it is achieved when data to be uploaded are numerous, Effectively reduce server shake number of times, alleviate the effect of server stress.

It will be appreciated by those skilled in the art that all or part of step realizing in above-described embodiment method is permissible Instructing relevant hardware by program to complete, this program is stored in a storage medium, including some Instruct with so that an equipment (can be single-chip microcomputer, chip etc.) or processor (processor) perform All or part of step of method described in each embodiment of the application.And aforesaid storage medium includes: USB flash disk, Portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), the various media that can store program code such as magnetic disc or CD.

Embodiment six

The structural representation of a kind of data uploading device that Fig. 6 provides for the embodiment of the present invention six.In these data Pass device and include that data message group receiver module 410, data message assembling and dismantling sub-module 420 and data process Module 430.

Wherein, data message group receiver module 410, for receiving client based on default integration rules The data message group passed;Data message assembling and dismantling sub-module 420, for according to described integration rules, by described Data message assembling and dismantling are divided into many data;Data processing module 430, for carrying out each described data respectively Process, form result.

The present embodiment technical scheme disposably receives many data by the way of with data message group, reduces Existing data uploading method is because can only upload one every time, and when data to be uploaded are numerous, server needs Shake repeatedly, causes server shake frequently, and server stress is huge, and the bad phenomenon even crashed occurs Probability, it is achieved that when data to be uploaded are numerous, effectively reduce server shake number of times, alleviate server The effect of pressure.

Further, described data processing module 430 specifically may be used for: has judged each described data the most Be stored in server, the data not stored stored, and using the storage state of each described data as Result.

Further, described data uploading device can also include: result sending module, for respectively Each described data are processed, after forming result, by the result of each described data based on institute State integration rules to integrate, form processing result information group, be sent to client.

Further, described data message assembling and dismantling sub-module 420 may include that key word recognition unit, uses According to described integration rules, from described data message group, carry out key word identification;Data split cells, Data between by each key word are split as wall scroll data.

Embodiment seven

The structural representation of a kind of data uploading device that Fig. 7 provides for the embodiment of the present invention seven.In these data Biography device includes: data message group integrates transmission module 520 in module 510 and data message group.

Wherein, data message group integrates module 510, for when producing data and uploading demand, by least two Bar data to be uploaded, based on default integration rules, are integrally formed data message group;Data message group uploads mould Block 520, for being uploaded to server by described data message group.

The present embodiment technical scheme client is when producing data and uploading demand, it is judged that whether data to be uploaded accord with Closing integration condition, if meeting integration condition, each Data Integration to be uploaded being formed data message group, and with number It is believed that the form of breath group, by each data upload server, reduces existing data uploading method because can only every time Uploading one, when data to be uploaded are numerous, server needs shake repeatedly, causes server shake frequently, Server stress is huge, the bad phenomenon odds even crashed, it is achieved that when data to be uploaded are numerous Time, effectively reduce server shake number of times, alleviate the effect of server stress.

Further, this data uploading device can also include: processing result information assembling and dismantling sub-module, is used for After described data message group is uploaded to server, receive the processing result information group that described server returns, And split based on described integration rules.

Further, data message group integration module 510 specifically may be used for: with in described integration rules At least two data to be uploaded, as blank character, are separately positioned between blank character by key word, are integrally formed Data message group.

Further, data message group is integrated module 510 and be may include that integration condition judgment unit and number It is believed that breath group integral unit.

Wherein, integrate condition judgment unit, for when producing data and uploading demand, identifying data to be uploaded Whether meet integration condition;

Data message group integral unit, if integrating condition for described data fit to be uploaded, then will at least Article two, data to be uploaded are based on default integration rules, are integrally formed data message group.

Further, integrate condition judgment unit and specifically may be used for: when producing data and uploading demand, know The quantity of data the most to be uploaded, at least one uploaded in destination address and classification, if meet integration condition.

The said goods can perform the method that any embodiment of the present invention is provided, and possesses the corresponding merit of execution method Can module and beneficial effect.

Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art Row various obvious changes, readjust and substitute without departing from protection scope of the present invention.Therefore, though So by above example, the present invention is described in further detail, but the present invention be not limited only to Upper embodiment, without departing from the inventive concept, it is also possible to include other Equivalent embodiments more, And the scope of the present invention is determined by scope of the appended claims.

Claims (18)

1. a data uploading method, it is characterised in that including:
Receive the data message group that client is uploaded based on default integration rules;
According to described integration rules, described data message assembling and dismantling are divided into many data;
Respectively each described data are processed, form result.
Data uploading method the most according to claim 1, it is characterised in that respectively to each described data Process, form result and include:
Judge that each described data have been stored in server the most, the data not stored are stored, and will The storage state of each described data is as result.
Data uploading method the most according to claim 1, it is characterised in that respectively to each described data Process, after forming result, also include:
The result of each described data is integrated based on described integration rules, forms processing result information Group, is sent to client.
4. according to the arbitrary described data uploading method of claim 1-3, it is characterised in that according to described whole Normally, it is divided into a plurality of data to include described data message assembling and dismantling:
According to described integration rules, from described data message group, carry out key word identification;
Data between each key word are split as wall scroll data.
5. a data uploading method, it is characterised in that including:
By at least two data to be uploaded based on default integration rules, it is integrally formed data message group;
Described data message group is uploaded to server.
Method the most according to claim 5, it is characterised in that described data message group is uploaded to clothes After business device, also include:
Receive the processing result information group that described server returns, and split based on described integration rules.
Method the most according to claim 5, it is characterised in that will at least two data to be uploaded based on The integration rules preset, is integrally formed data message group and includes:
Using the key word in described integration rules as blank character, at least two data to be uploaded are respectively provided with Between blank character, it is integrally formed data message group.
Method the most according to claim 5, it is characterised in that described by least two data to be uploaded Based on default integration rules, it is integrally formed data message group, also includes:
When producing data and uploading demand, identify whether data to be uploaded meet integration condition;
If described data fit to be uploaded integrates condition, then by least two data to be uploaded based on default Integration rules, is integrally formed data message group.
Method the most according to claim 8, it is characterised in that when producing data and uploading demand, know Whether data the most to be uploaded meet integration condition includes:
When producing data and uploading demand, identify the quantity of data to be uploaded, upload in destination address and classification At least one, if meet integration condition.
10. a data uploading device, it is characterised in that including:
Data message group receiver module, for receiving the data letter that client is uploaded based on default integration rules Breath group;
Described data message assembling and dismantling, for according to described integration rules, are divided into by data message assembling and dismantling sub-module Many data;
Data processing module, for processing each described data respectively, forms result.
11. data uploading devices according to claim 10, it is characterised in that described data process mould Block specifically for:
Judge that each described data have been stored in server the most, the data not stored are stored, and will The storage state of each described data is as result.
12. data uploading devices according to claim 10, it is characterised in that also include:
Result sending module, for respectively each described data being processed, after forming result, The result of each described data is integrated based on described integration rules, forms processing result information group, It is sent to client.
13. according to the arbitrary described data uploading device of claim 10-12, it is characterised in that described number It is believed that breath assembling and dismantling sub-module includes:
Key word recognition unit, for according to described integration rules, carries out key from described data message group Word identification;
Data split cells, for being split as wall scroll data by the data between each key word.
14. 1 kinds of data uploading devices, it is characterised in that including:
Data message group integrates module, is used at least two data to be uploaded based on default integration rules, It is integrally formed data message group;
Transmission module in data message group, for being uploaded to server by described data message group.
15. devices according to claim 14, it is characterised in that also include:
Processing result information assembling and dismantling sub-module, after described data message group is uploaded to server, connects Receive the processing result information group that described server returns, and split based on described integration rules.
16. devices according to claim 14, it is characterised in that described data message group integrates module Specifically for:
Using the key word in described integration rules as blank character, at least two data to be uploaded are respectively provided with Between blank character, it is integrally formed data message group.
17. devices according to claim 14, it is characterised in that described data message group integrates module Including:
Integrate condition judgment unit, for when producing data and uploading demand, identifying whether data to be uploaded accord with Close integration condition;
Data message group integral unit, if integrating condition for described data fit to be uploaded, then will at least Article two, data to be uploaded are based on default integration rules, are integrally formed data message group.
18. devices according to claim 17, it is characterised in that described integration conditional judgment module list Unit is used for:
When producing data and uploading demand, identify the quantity of data to be uploaded, upload in destination address and classification At least one, if meet integration condition.
CN201610482361.3A 2016-06-27 2016-06-27 Data uploading method and apparatus CN105959407A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610482361.3A CN105959407A (en) 2016-06-27 2016-06-27 Data uploading method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610482361.3A CN105959407A (en) 2016-06-27 2016-06-27 Data uploading method and apparatus

Publications (1)

Publication Number Publication Date
CN105959407A true CN105959407A (en) 2016-09-21

Family

ID=56905182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610482361.3A CN105959407A (en) 2016-06-27 2016-06-27 Data uploading method and apparatus

Country Status (1)

Country Link
CN (1) CN105959407A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107591191A (en) * 2017-09-29 2018-01-16 广州市香港科大霍英东研究院 The analysis storage method and system of exercise data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101990238A (en) * 2010-11-05 2011-03-23 中国科学院声学研究所 Method for aggregating sensor network data
US20110158646A1 (en) * 2009-12-25 2011-06-30 Industrial Technology Research Institute Medium access control device and method for optical packet-switched metro wdm slotted-ring networks
CN102480335A (en) * 2010-11-30 2012-05-30 金蝶软件(中国)有限公司 Method and system for transmitting business data
CN105554081A (en) * 2015-12-09 2016-05-04 华为技术有限公司 File difference transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110158646A1 (en) * 2009-12-25 2011-06-30 Industrial Technology Research Institute Medium access control device and method for optical packet-switched metro wdm slotted-ring networks
CN101990238A (en) * 2010-11-05 2011-03-23 中国科学院声学研究所 Method for aggregating sensor network data
CN102480335A (en) * 2010-11-30 2012-05-30 金蝶软件(中国)有限公司 Method and system for transmitting business data
CN105554081A (en) * 2015-12-09 2016-05-04 华为技术有限公司 File difference transmission method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107591191A (en) * 2017-09-29 2018-01-16 广州市香港科大霍英东研究院 The analysis storage method and system of exercise data
WO2019061552A1 (en) * 2017-09-29 2019-04-04 广州市香港科大霍英东研究院 Motion data analysis and storage method and system

Similar Documents

Publication Publication Date Title
US10372748B2 (en) Methods and apparatuses for presenting content
US20170078215A1 (en) Digital Content Connectivity and Control via a Plurality of Controllers that are Treated Discriminatively
CN104601685B (en) A kind of method for playing music and device of intelligent sound box
CN105578209B (en) Barrage display methods and device
US10529377B2 (en) Video presentation method, device, system and storage medium
CN102710789B (en) Interaction method, system and device for data between intelligent terminals
US9262533B2 (en) Context based data searching
US8949357B2 (en) Ad hoc group chat using a social networking service
US20140165119A1 (en) Offline download method, multimedia file download method and system thereof
US7831707B2 (en) Methods, systems, and computer program products for managing electronic subscriptions
US6883009B2 (en) Image data management method and system using network
US10033876B2 (en) System and method for associating audio clips with objects
US7305423B2 (en) Preserving memory resources by limiting time-date information for a subset of properties
US8280949B2 (en) System and method for synchronized media distribution
US10366055B2 (en) Decreasing duplicates and loops in an activity record
EP2434689B1 (en) Method and apparatus for detecting message
US20140188878A1 (en) System and method for accessing and managing mobile device metadata
CN106534273A (en) Block chain metadata storage system, and storage method and retrieval method thereof
CN102110132B (en) Uniform resource locator matching and searching method, device and network equipment
CN104602131A (en) Barrage processing method and system
US20120323990A1 (en) Efficient state reconciliation
US20140297727A1 (en) Method, system, server and client device for message sychronizing
CN101796768B (en) Communication system, base station device, and terminal device
US20140280859A1 (en) Sharing control system and method for network resources download information
US20180241705A1 (en) Methods and systems for generating an ephemeral content message

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160921

WD01 Invention patent application deemed withdrawn after publication