CN108023963A - A kind of data processing method and device - Google Patents
A kind of data processing method and device Download PDFInfo
- Publication number
- CN108023963A CN108023963A CN201711348278.8A CN201711348278A CN108023963A CN 108023963 A CN108023963 A CN 108023963A CN 201711348278 A CN201711348278 A CN 201711348278A CN 108023963 A CN108023963 A CN 108023963A
- Authority
- CN
- China
- Prior art keywords
- data
- field
- sent
- space size
- shared
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Abstract
An embodiment of the present invention provides a kind of data processing method and device.Pass through the method for the embodiment of the present invention,If get the data to be sent that shared space size is more than predetermined threshold value,When simplifying data to be sent,Whether the space size without delete a field that can be simplified in data to be sent every time and judgement is deleted shared by the data to be sent after field is more than predetermined threshold value,Untill when the space size shared by the data to be sent after deleting field is less than or equal to predetermined threshold value,But it can directly determine the data type of data to be sent,And determine the aiming field in data to be sent,Aiming field simplifies the field deleted during the data of data type from data including the last time,Delete all or part of aiming field in data to be sent and can obtain the target data that shared space size is less than or equal to predetermined threshold value,So as to improve the efficiency for simplifying data to be sent.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of data processing method and device.
Background technology
With the rapid development of technology, more and more user's using terminal online, in the mistake of user's using terminal online
Cheng Zhong, generally requires to carry out data interaction between terminal and the webserver, for example, terminal sends http to the webserver
(HyperText Transfer Protocol, hypertext transfer protocol) request message etc..
Wherein, multiple fields are frequently included in the http request message that terminal to server is sent, in each field
For storing information, the information of storage includes:Source IP (Internet Protocol, Internet protocol) address, purpose IP address,
(Uniform Resource Locator, unified resource are fixed by source port, destination interface, communication protocol version, requesting method, URL
Position symbol) and data entity, supported language, the client that user uses, the wire data type supported, the coding supported
The request type and proxy server that form, the type of proxy server, the domain name of proxy server, proxy server are supported
Agent authority of power etc..
Sometimes the space size shared by http request message may be larger, in the space size shared by http request message
During more than predetermined threshold value, if http request message is sent to the webserver, http request message is in terminal and network
Transmit that the required time is longer in network connection between server, so as to cause the webserver to receive http request message
It is less efficient, while waste Internet resources.
But, it is generally the case that some fields in the http request message that terminal is sent to the webserver are can essence
The field of letter.Such as store the field of the type of proxy server and store the request type of proxy server support
Field etc..
If not including the field that can simplify in http request message, also without prejudice to the webserver according to receiving http
Request message generates http response messages and returns to http response messages to terminal, that is, normally surfing the Internet without prejudice to user.
Therefore, before http request message is sent to the webserver, http request message can be simplified, such as delete
The field simplified in http request message, the http for then deleting the field that can be simplified to webserver transmission again please
Message is sought, receives the efficiency of http request message so as to improve the webserver, while save Internet resources.
Wherein, in the prior art, when simplifying http request message, it is necessary first to determine the institute in http request message
Have the field that can be simplified, afterwards in http request message delete a field that can be simplified, then judge delete one can
Whether the space size shared by http request message after the field simplified is more than predetermined threshold value, if less than or equal to default threshold
Value, then terminate to simplify flow, if still greater than predetermined threshold value, continues what the deletion one in http request message can simplify
Field, then judge to delete the space size shared by the http request message after two fields that can be simplified whether be more than it is default
Threshold value, if less than or equal to predetermined threshold value, then terminates to simplify flow, if still greater than predetermined threshold value, continues in http
A field that can be simplified is deleted in request message, repeats above-mentioned steps, until deleting multiple fields simplified
Untill space size shared by http request message is less than or equal to predetermined threshold value, then terminate to simplify flow.
However, it is found by the inventors that of the prior art simplify the less efficient of data.
The content of the invention
In order to improve the efficiency for simplifying data, the embodiment of the present invention shows a kind of data processing method and device.
In a first aspect, the embodiment of the present invention shows a kind of data processing method, the described method includes:
When getting shared space size and being more than the data to be sent of predetermined threshold value, the data to be sent are determined
Data type;
Determine the aiming field in the data to be sent, the aiming field simplifies the data class including the last time
The field deleted during the data of type from the data;
The aiming field in the data to be sent is deleted, shared space size is obtained and is less than or equal to the default threshold
The target data of value.
In an optional implementation, the aiming field deleted in the data to be sent, including:
Determine the space size shared by each aiming field in the data to be sent;
The aiming field of shared space size maximum is deleted in the data to be sent;
Whether the space size for judging to delete shared by the data to be sent after aiming field is more than the predetermined threshold value;
If deleting the space size shared by the data to be sent after aiming field is more than the predetermined threshold value, perform
It is described shared space size maximum is deleted in the data to be sent aiming field the step of;
If deleting the space size shared by the data to be sent after aiming field is less than or equal to the predetermined threshold value,
The data to be sent after aiming field will then be deleted and be determined as the target data.
In an optional implementation, the method further includes:
If deleting the space size shared by the data to be sent after target complete field is more than the predetermined threshold value,
Determine to delete the preset field in the data to be sent after target complete field, the preset field includes the number to be sent
Other all fields in the field simplified in addition to the aiming field;
Determine to delete the space size shared by each preset field in the data to be sent after target complete field;
The preset field of shared space size maximum is deleted in the data to be sent after deleting target complete field;
Whether the space size for judging to delete shared by the data to be sent after preset field is more than the predetermined threshold value;
If deleting the space size shared by the data to be sent after preset field is more than the predetermined threshold value, perform
The step of the preset field that shared space size maximum is deleted in the data to be sent after deleting target complete field
Suddenly;
If deleting the space size shared by the data to be sent after preset field is less than or equal to the predetermined threshold value,
The data to be sent after preset field will then be deleted and be determined as the target data.
In an optional implementation, the aiming field determined in the data to be sent, including:
According to the correspondence between pre-set data type and field identification, determine opposite with the data type
The field identification answered;
Field corresponding to the field identification in the data to be sent is determined as the aiming field.
It is described to delete the data to be sent after preset field and be determined as the mesh in an optional implementation
After marking data, further include:
By the data type of the data to be sent and the field mark for the preset field deleted in the data to be sent
Know one corresponding list item of composition, and be stored in the correspondence.
Second aspect, the embodiment of the present invention show a kind of data processing equipment, and described device includes:
First determining module, for when getting shared space size and being more than the data to be sent of predetermined threshold value, really
The data type of the fixed data to be sent;
Second determining module, for determining the aiming field in the data to be sent, the aiming field includes nearest
The field deleted when once simplifying the data of the data type from the data;
Removing module, for deleting the aiming field in the data to be sent, obtain shared space size be less than or
Equal to the target data of the predetermined threshold value.
In an optional implementation, the removing module includes:
First determination unit, for determining the space size shared by each aiming field in the data to be sent;
First deletes unit, for deleting the aiming field of shared space size maximum in the data to be sent;
Whether the first judging unit, the space size deleted for judgement shared by the data to be sent after aiming field are big
In the predetermined threshold value;
The first deletion unit is additionally operable to:If delete the space size shared by the data to be sent after aiming field
More than the predetermined threshold value, then the aiming field of shared space size maximum is deleted in the data to be sent;
Second determination unit, if for delete the space size shared by the data to be sent after aiming field be less than or
Equal to the predetermined threshold value, then it will delete the data to be sent after aiming field and be determined as the target data.
In an optional implementation, the removing module further includes:
3rd determination unit, if big for deleting space size shared by the data to be sent after target complete field
In the predetermined threshold value, it is determined that delete the preset field in the data to be sent after target complete field, the predetermined word
Section includes other all fields in addition to the aiming field in the field simplified in the data to be sent;
4th determination unit, for determining to delete each predetermined word in the data to be sent after target complete field
The space size of Duan Suozhan;
Second deletes unit, and the space for deleting shared in the data to be sent after target complete field is deleted is big
Small maximum preset field;
Whether the second judging unit, the space size deleted for judgement shared by the data to be sent after preset field are big
In the predetermined threshold value;
The second deletion unit is additionally operable to:If delete the space size shared by the data to be sent after preset field
More than the predetermined threshold value, then it is maximum that shared space size is deleted in the data to be sent after deleting target complete field
Preset field;
5th determination unit, if for delete the space size shared by the data to be sent after preset field be less than or
Equal to the predetermined threshold value, then it will delete the data to be sent after preset field and be determined as the target data.
In an optional implementation, second determining module includes:
6th determination unit, for according to the correspondence between pre-set data type and field identification, determining
With the corresponding field identification of the data type;
7th determination unit, for the field corresponding to the field identification in the data to be sent to be determined as institute
State aiming field.
In an optional implementation, the removing module further includes:
Storage unit, for the data type of the data to be sent is default with being deleted in the data to be sent
The field identification of field forms a corresponding list item, and is stored in the correspondence.
Compared with prior art, the embodiment of the present invention includes advantages below:
By the method for the embodiment of the present invention, if getting the number to be sent that shared space size is more than predetermined threshold value
According to when simplifying data to be sent, without deleting a field that can be simplified in data to be sent every time and judgement deletes
Whether the space size shared by data to be sent after field is more than predetermined threshold value, until deleting the data to be sent after field
Untill when shared space size is less than or equal to predetermined threshold value, but it can directly determine the data type of data to be sent,
And determine the aiming field in data to be sent, when aiming field simplifies the data of data type including the last time from data
The field of deletion, delete all or part of aiming field in data to be sent can obtain shared space size be less than or
Equal to the target data of predetermined threshold value, so as to improve the efficiency for simplifying data to be sent.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of data processing method embodiment of the present invention;
Fig. 2 is a kind of step flow chart of data processing method embodiment of the present invention;
Fig. 3 is a kind of step flow chart of data processing method embodiment of the present invention;
Fig. 4 is a kind of structure diagram of data processing equipment embodiment of the present invention.
Embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
With reference to Fig. 1, show a kind of step flow chart of data processing method embodiment of the present invention, can specifically include
Following steps:
In step S101, when getting shared space size and being more than the data to be sent of predetermined threshold value, determine to treat
Send the data type of data;
In embodiments of the present invention, data to be sent can be that terminal needs to be sent to the data of server or server
Need to be sent to data of terminal etc..Data to be sent include the data of numerous types of data, such as including:Communications short messages,
Such as QQ message and wechat message etc., alternatively, the message for obtaining web data, such as http request message and http responses
Message etc., alternatively, for asking to establish request message communicated to connect etc..
In step s 102, the aiming field in data to be sent is determined, aiming field simplifies the number including the last time
According to type data when the field deleted from the data;
In embodiments of the present invention, the field simplified in the data of different types of data is different, and different pieces of information class
The data stored in the field simplified in the data of type are also different, so that the target word of the data of different types of data
Section is often different.
For the data of any one data type, when needing to send the data of the data type for the first time, can delete
Except the field that all or part in the data can simplify, so that the space size deleted shared by the data after field is less than
Or equal to predetermined threshold value, then retransmit the data.
Further, this is corresponding by the field identification composition of the field simplified of the data type with being deleted in the data
List item, and in the correspondence being stored between pre-set data type and field identification.
When needing to send the data of the data type for the second time, can be determined and the data class according to above-mentioned correspondence
The corresponding field identification of type, then deletes the field corresponding to the field identification determined in the data, if deleted
The space size shared by the data after field is less than or equal to predetermined threshold value, then sends and delete the data after field;
If deleting the space shared by the data after field still greater than predetermined threshold value, continuation deletes other in the data can
The field simplified, untill the space size shared by the data after deleting field is less than or equal to predetermined threshold value, then sends out
Send the data after deleting field.
Further, by the data type and this other field groups that can simplify for being deleted in the data into corresponding table
, and in the correspondence being stored between pre-set data type and field identification.
When needing to send the data of the data type again afterwards, referring to the number for needing to send the data type for the second time
According to when method, be not described in detail one by one herein.
It is same for the data of other each data types.
Therefore, this step is specifically as follows:According to the correspondence between pre-set data type and field identification,
The definite and corresponding field identification of the data type, and the field corresponding to the field identification in data to be sent is determined
For aiming field.
In step s 103, the aiming field in data to be sent is deleted, shared space size is obtained and is less than or equal to
The target data of predetermined threshold value.
In embodiments of the present invention, the target complete field or partial target field in data to be sent can be deleted,
The target data that shared space size is less than or equal to predetermined threshold value is can obtain, further, retransmits target data.
By the method for the embodiment of the present invention, if getting the number to be sent that shared space size is more than predetermined threshold value
According to when simplifying data to be sent, without deleting a field that can be simplified in data to be sent every time and judgement deletes
Whether the space size shared by data to be sent after field is more than predetermined threshold value, until deleting the data to be sent after field
Untill when shared space size is less than or equal to predetermined threshold value, but it can directly determine the data type of data to be sent,
And determine the aiming field in data to be sent, when aiming field simplifies the data of data type including the last time from data
The field of deletion, delete all or part of aiming field in data to be sent can obtain shared space size be less than or
Equal to the target data of predetermined threshold value, so as to improve the efficiency for simplifying data to be sent.
In an alternative embodiment of the invention, ensureing the space size shared by target data less than or equal to predetermined threshold value
In the case of, in order to enable retain more fields in data to be sent in target data as much as possible, that is, in order to avoid
The excessive field simplified is deleted in data to be sent, referring to Fig. 2, step S103 includes:
In step s 201, the space size shared by each aiming field in data to be sent is determined;
It is respectively aiming field 1, aiming field 2, mesh for example, it is assumed that including 5 aiming fields altogether in data to be sent
Marking-up section 3, aiming field 4 and aiming field 5.And the space size shared by aiming field 1 is more than the sky shared by aiming field 2
Between size, space size shared by aiming field 2 is more than the space size shared by aiming field 3, the space shared by aiming field 3
Size is more than the space size shared by aiming field 4, and space size shared by aiming field 4 is more than shared by aiming field 5
Space size.
In step S202, the aiming field of shared space size maximum is deleted in data to be sent;
For example, the aiming field 1 of shared space size maximum can be deleted in data to be sent.
In step S203, judge to delete the space size shared by the data to be sent after aiming field whether be more than it is pre-
If threshold value;
For example, whether the space size for judging to delete shared by the data to be sent after aiming field 1 is more than predetermined threshold value.
If deleting the space size shared by the data to be sent after aiming field is more than predetermined threshold value, return to step
S202:The aiming field of shared space size maximum is deleted in data to be sent;
After aiming field 1 of shared space size maximum is deleted in data to be sent, data to be sent at this time
In the aiming field of shared space size maximum be aiming field 2, if deleting the data institute to be sent after aiming field 1
The space size accounted for is more than predetermined threshold value, then needs return to step S202, namely, it is also necessary to shared by being deleted in data to be sent
Space size maximum aiming field 2, wherein, delete and aiming field 1 be not present in the data to be sent after aiming field 2
With aiming field 2.
If deleting the space size shared by the data to be sent after aiming field is less than or equal to predetermined threshold value, in step
In rapid S204, the data to be sent after aiming field will be deleted and be determined as target data.
In embodiments of the present invention, the space size shared by the data to be sent after delete aiming field be less than or
Person is equal to predetermined threshold value, then in order to enable retaining more fields in data to be sent in target data as much as possible, that is,
In order to avoid deleting the excessive field simplified in data to be sent, without continuing to delete other mesh in data to be sent
Marking-up section, can will delete the data to be sent after aiming field and be determined as target data.
Further, in embodiments of the present invention, it is necessary to the aiming field for judging to delete in data to be sent whether be
The target complete field determined according to the correspondence between pre-set data type and field identification, if pending
The aiming field deleted in data is sent to be determined not according to the correspondence between pre-set data type and field identification
The target complete field gone out, then need to update the correspondence between pre-set data type and field identification.
If for example, the aiming field deleted in data to be sent is only according to pre-set data type and word
Partial target field in the aiming field that correspondence between segment identification is determined, so then needs in pre-set number
Include according to being deleted in the correspondence between type and field identification in the aiming field that this determines except in data to be sent
The correspondence list item of the field identification of other aiming fields beyond the aiming field of deletion.
For example, only deleting aiming field 1 and 2 in aiming field 1~5, delete and treated after aiming field 1 and 2
Send the space size shared by data and be less than or equal to predetermined threshold value, then need in pre-set data type and field identification
Between correspondence in delete include aiming field 3~5 field identification correspondence list item.
However, in an alternative embodiment of the invention, sometimes, although two data are the data of same data type,
It is that the data stored in each field in the two data may be different, so may result in:By in one of data
All aiming fields delete after, delete space size shared by the data after aiming field be less than or equal to it is default
Threshold value, still, after all aiming fields in another data are deleted, deletes another data institute after aiming field
The space size accounted for is but still greater than predetermined threshold value.
Therefore, in embodiments of the present invention, may there is also delete shared by the data to be sent after target complete field
Space size still greater than predetermined threshold value situation, if deleting the sky shared by the data to be sent after target complete field
Between size still greater than predetermined threshold value, then after deleting the data sending to be sent after target complete field, delete complete
Data to be sent after portion's aiming field are still longer in the time of transmission over networks, and opposite end obtains the efficiency of data to be sent still
It is old relatively low, while can still waste Internet resources.
Therefore, the space size shared by the data to be sent after target complete field is deleted is more than the feelings of predetermined threshold value
Under condition, in order to improve the efficiency and saving Internet resources that opposite end obtains data to be sent, referring to Fig. 3, this method further includes:
In step S301, if the space size deleted shared by the data to be sent after target complete field is more than in advance
If threshold value, determine to delete the preset field in the data to be sent after target complete field, preset field includes number to be sent
Other all fields in the field simplified in addition to aiming field;
For example, it is assumed that include 10 fields that can be simplified altogether in data to be sent, wherein 5 fields that can be simplified are mesh
Marking-up section, be respectively aiming field 1, aiming field 2, aiming field 3, aiming field 4 and aiming field 5, in addition 5 can essence
The field of letter is preset field, is respectively preset field 1, preset field 2, preset field 3, preset field 4 and preset field
5。
In step s 302, determine to delete each preset field institute in the data to be sent after target complete field
The space size accounted for;
For example, in preset field 1, preset field 2, preset field 3, preset field 4 and preset field 5, it is assumed that pre-
If the space size shared by field 1 is more than the space size shared by preset field 2, the space size shared by preset field 2 is more than
Space size shared by preset field 3, the space size shared by preset field 3 are more than the space size shared by preset field 4, with
And the space size shared by preset field 4 is more than the space size shared by preset field 5.
In step S303, shared space size is deleted in the data to be sent after deleting target complete field most
Big preset field;
For example, in this step, the preset field 1 of shared space size maximum can be deleted in data to be sent.
In step s 304, judge to delete the space size shared by the data to be sent after preset field whether be more than it is pre-
If threshold value;
For example, whether the space size for judging to delete shared by the data to be sent after preset field 1 is more than predetermined threshold value.
Wherein, delete and aiming field 1~5 and preset field 1 are not present in the data to be sent after preset field 1.
If deleting the space size shared by the data to be sent after preset field is more than predetermined threshold value, return to step
S303:The preset field of shared space size maximum is deleted in the data to be sent after deleting target complete field;
After preset field 1 of shared space size maximum is deleted in data to be sent, data to be sent at this time
In the preset field of shared space size maximum be preset field 2, if deleting the data institute to be sent after preset field 1
The space size accounted for is more than predetermined threshold value, then needs return to step S303, namely, it is also necessary to shared by being deleted in data to be sent
Space size maximum preset field 2, wherein, delete and aiming field 1 be not present in the data to be sent after preset field 2
~5, preset field 1 and preset field 2.
If deleting the space size shared by the data to be sent after preset field is less than or equal to predetermined threshold value, in step
In rapid S305, the data to be sent after preset field will be deleted and be determined as target data.
In embodiments of the present invention, the space size shared by the data to be sent after delete preset field be less than or
Person is equal to predetermined threshold value, then in order to enable retaining more fields in data to be sent in target data as much as possible, that is,
In order to avoid deleting the excessive field simplified in data to be sent, without continue to delete in data to be sent other are pre-
If field, it can will delete the data to be sent after preset field and be determined as target data.
Further, in embodiments of the present invention, it is also necessary to according to the preset field deleted in data to be sent to pre-
Correspondence renewal between the data type and field identification that first set.For example, by the data type of data to be sent with
The corresponding list item of field identification composition for the preset field deleted in data to be sent, and be stored in pre-set data type with
In correspondence between field identification.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
Close, but those skilled in the art should know, the embodiment of the present invention and from the limitation of described sequence of movement, because according to
According to the embodiment of the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
With reference to Fig. 2, show a kind of structure diagram of data processing equipment embodiment of the present invention, can specifically include as follows
Module:
First determining module 11, for when getting shared space size and being more than the data to be sent of predetermined threshold value,
Determine the data type of the data to be sent;
Second determining module 12, for determining the aiming field in the data to be sent, the aiming field is included most
The field deleted when closely once simplifying the data of the data type from the data;
Removing module 13, for deleting the aiming field in the data to be sent, obtains shared space size and is less than
Or the target data equal to the predetermined threshold value.
In an optional implementation, the removing module 13 includes:
First determination unit, for determining the space size shared by each aiming field in the data to be sent;
First deletes unit, for deleting the aiming field of shared space size maximum in the data to be sent;
Whether the first judging unit, the space size deleted for judgement shared by the data to be sent after aiming field are big
In the predetermined threshold value;
The first deletion unit is additionally operable to:If delete the space size shared by the data to be sent after aiming field
More than the predetermined threshold value, then the aiming field of shared space size maximum is deleted in the data to be sent;
Second determination unit, if for delete the space size shared by the data to be sent after aiming field be less than or
Equal to the predetermined threshold value, then it will delete the data to be sent after aiming field and be determined as the target data.
In an optional implementation, the removing module 13 further includes:
3rd determination unit, if big for deleting space size shared by the data to be sent after target complete field
In the predetermined threshold value, it is determined that delete the preset field in the data to be sent after target complete field, the predetermined word
Section includes other all fields in addition to the aiming field in the field simplified in the data to be sent;
4th determination unit, for determining to delete each predetermined word in the data to be sent after target complete field
The space size of Duan Suozhan;
Second deletes unit, and the space for deleting shared in the data to be sent after target complete field is deleted is big
Small maximum preset field;
Whether the second judging unit, the space size deleted for judgement shared by the data to be sent after preset field are big
In the predetermined threshold value;
The second deletion unit is additionally operable to:If delete the space size shared by the data to be sent after preset field
More than the predetermined threshold value, then it is maximum that shared space size is deleted in the data to be sent after deleting target complete field
Preset field;
5th determination unit, if for delete the space size shared by the data to be sent after preset field be less than or
Equal to the predetermined threshold value, then it will delete the data to be sent after preset field and be determined as the target data.
In an optional implementation, second determining module 12 includes:
6th determination unit, for according to the correspondence between pre-set data type and field identification, determining
With the corresponding field identification of the data type;
7th determination unit, for the field corresponding to the field identification in the data to be sent to be determined as institute
State aiming field.
In an optional implementation, the removing module 13 further includes:
Storage unit, for the data type of the data to be sent is default with being deleted in the data to be sent
The field identification of field forms a corresponding list item, and is stored in the correspondence.
By the method for the embodiment of the present invention, if getting the number to be sent that shared space size is more than predetermined threshold value
According to when simplifying data to be sent, without deleting a field that can be simplified in data to be sent every time and judgement deletes
Whether the space size shared by data to be sent after field is more than predetermined threshold value, until deleting the data to be sent after field
Untill when shared space size is less than or equal to predetermined threshold value, but it can directly determine the data type of data to be sent,
And determine the aiming field in data to be sent, when aiming field simplifies the data of data type including the last time from data
The field of deletion, delete all or part of aiming field in data to be sent can obtain shared space size be less than or
Equal to the target data of predetermined threshold value, so as to improve the efficiency for simplifying data to be sent.
For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can use complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that it can realize flowchart and/or the block diagram by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or square frame combination.These can be provided
Computer program instructions send terminal to all-purpose computer, special purpose computer, embedded transmitter or other programmable datas and set
Standby transmitter is to produce a machine so that the transmitter that terminal device is sent by computer or other programmable datas is held
Capable instruction is produced and is used for realization in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable datas to send terminal device
In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bag
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can also be loaded into computer or other programmable datas are sent on terminal device so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented transmission, so that
The instruction performed on computer or other programmable terminal equipments is provided and is used for realization in one flow of flow chart or multiple flows
And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make these embodiments other change and modification.So appended claims are intended to be construed to
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped
Those key elements are included, but also including other elements that are not explicitly listed, or further include as this process, method, article
Or the key element that terminal device is intrinsic.In the absence of more restrictions, wanted by what sentence "including a ..." limited
Element, it is not excluded that also there are other identical element in the process including the key element, method, article or terminal device.
Above to a kind of data processing method provided by the present invention and device, it is described in detail, it is used herein
Specific case is set forth the principle of the present invention and embodiment, to understand the explanation of above example is only intended to helping
The method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, having
There will be changes in body embodiment and application range, in conclusion this specification content should not be construed as to the present invention
Limitation.
Claims (10)
- A kind of 1. data processing method, it is characterised in that the described method includes:When getting shared space size and being more than the data to be sent of predetermined threshold value, the data of the data to be sent are determined Type;Determine the aiming field in the data to be sent, the aiming field simplifies the data type including the last time The field deleted during data from the data;The aiming field in the data to be sent is deleted, shared space size is obtained and is less than or equal to the predetermined threshold value Target data.
- 2. according to the method described in claim 1, it is characterized in that, the aiming field deleted in the data to be sent, Including:Determine the space size shared by each aiming field in the data to be sent;The aiming field of shared space size maximum is deleted in the data to be sent;Whether the space size for judging to delete shared by the data to be sent after aiming field is more than the predetermined threshold value;If deleting the space size shared by the data to be sent after aiming field is more than the predetermined threshold value, perform described in The step of aiming field of shared space size maximum is deleted in the data to be sent;, will if deleting the space size shared by the data to be sent after aiming field is less than or equal to the predetermined threshold value Delete the data to be sent after aiming field and be determined as the target data.
- 3. according to the method described in claim 2, it is characterized in that, the method further includes:If deleting the space size shared by the data to be sent after target complete field is more than the predetermined threshold value, it is determined that The preset field in the data to be sent after target complete field is deleted, the preset field is included in the data to be sent The field simplified in other all fields in addition to the aiming field;Determine to delete the space size shared by each preset field in the data to be sent after target complete field;The preset field of shared space size maximum is deleted in the data to be sent after deleting target complete field;Whether the space size for judging to delete shared by the data to be sent after preset field is more than the predetermined threshold value;If deleting the space size shared by the data to be sent after preset field is more than the predetermined threshold value, perform described in The step of preset field of shared space size maximum is deleted in the data to be sent after deleting target complete field;, will if deleting the space size shared by the data to be sent after preset field is less than or equal to the predetermined threshold value Delete the data to be sent after preset field and be determined as the target data.
- 4. according to the method described in claim 3, it is characterized in that, it is described determine the data to be sent in aiming field, Including:According to the correspondence between pre-set data type and field identification, determine corresponding with the data type Field identification;Field corresponding to the field identification in the data to be sent is determined as the aiming field.
- 5. according to the method described in claim 4, it is characterized in that, described will to delete the data to be sent after preset field true It is set to after the target data, further includes:By the data type of the data to be sent and the field identification group for the preset field deleted in the data to be sent Into a corresponding list item, and it is stored in the correspondence.
- 6. a kind of data processing equipment, it is characterised in that described device includes:First determining module, for when getting shared space size and being more than the data to be sent of predetermined threshold value, determining institute State the data type of data to be sent;Second determining module, for determining the aiming field in the data to be sent, the aiming field includes the last time The field deleted when simplifying the data of the data type from the data;Removing module, for deleting the aiming field in the data to be sent, obtains shared space size and is less than or equal to The target data of the predetermined threshold value.
- 7. device according to claim 6, it is characterised in that the removing module includes:First determination unit, for determining the space size shared by each aiming field in the data to be sent;First deletes unit, for deleting the aiming field of shared space size maximum in the data to be sent;First judging unit, deletes whether the space size shared by the data to be sent after aiming field is more than institute for judgement State predetermined threshold value;The first deletion unit is additionally operable to:If delete the space size shared by the data to be sent after aiming field to be more than The predetermined threshold value, then delete the aiming field of shared space size maximum in the data to be sent;Second determination unit, if be less than or equal to for deleting the space size shared by the data to be sent after aiming field The predetermined threshold value, then will delete the data to be sent after aiming field and be determined as the target data.
- 8. device according to claim 7, it is characterised in that the removing module further includes:3rd determination unit, if being more than institute for deleting the space size shared by the data to be sent after target complete field State predetermined threshold value, it is determined that delete the preset field in the data to be sent after target complete field, the preset field bag Include other all fields in addition to the aiming field in the field simplified in the data to be sent;4th determination unit, for determining to delete each preset field institute in the data to be sent after target complete field The space size accounted for;Second deletes unit, for deleting shared space size in the data to be sent after target complete field is deleted most Big preset field;Second judging unit, deletes whether the space size shared by the data to be sent after preset field is more than institute for judgement State predetermined threshold value;The second deletion unit is additionally operable to:If delete the space size shared by the data to be sent after preset field to be more than The predetermined threshold value, then delete the pre- of shared space size maximum in the data to be sent after deleting target complete field If field;5th determination unit, if be less than or equal to for deleting the space size shared by the data to be sent after preset field The predetermined threshold value, then will delete the data to be sent after preset field and be determined as the target data.
- 9. device according to claim 8, it is characterised in that second determining module includes:6th determination unit, for according to the correspondence between pre-set data type and field identification, definite and institute State the corresponding field identification of data type;7th determination unit, for the field corresponding to the field identification in the data to be sent to be determined as the mesh Marking-up section.
- 10. device according to claim 9, it is characterised in that the removing module further includes:Storage unit, for by the data type of the data to be sent and the preset field deleted in the data to be sent Field identification form a corresponding list item, and be stored in the correspondence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711348278.8A CN108023963B (en) | 2017-12-15 | 2017-12-15 | A kind of data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711348278.8A CN108023963B (en) | 2017-12-15 | 2017-12-15 | A kind of data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108023963A true CN108023963A (en) | 2018-05-11 |
CN108023963B CN108023963B (en) | 2019-03-12 |
Family
ID=62073920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711348278.8A Active CN108023963B (en) | 2017-12-15 | 2017-12-15 | A kind of data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108023963B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101778001A (en) * | 2010-01-15 | 2010-07-14 | 瑞斯康达科技发展股份有限公司 | Method and system for mutual compatibility of multi-version between SNMP (Simple Network Management Protocol) agent and managed apparatus |
CN102650931A (en) * | 2012-04-01 | 2012-08-29 | 华为技术有限公司 | Method and system for writing data |
CN103227827A (en) * | 2013-04-24 | 2013-07-31 | 北京小米科技有限责任公司 | Resource request method and device |
CN103428677A (en) * | 2012-05-17 | 2013-12-04 | 上海晨兴希姆通电子科技有限公司 | Method for sending grouped service data and method for receiving message sent by signaling channel |
CN104348877A (en) * | 2013-08-06 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for transmitting Http (hypertext transport protocol) request message |
CN105491078A (en) * | 2014-09-15 | 2016-04-13 | 阿里巴巴集团控股有限公司 | Data processing method and device in SOA system, and SOA system |
CN106664312A (en) * | 2016-11-04 | 2017-05-10 | 北京小米移动软件有限公司 | Protocol data unit (PDU) pack generation method and apparatus |
US20170278005A1 (en) * | 2016-03-23 | 2017-09-28 | Interactive Intelligence Group, Inc. | Technologies for auto discover and connect to a rest interface |
-
2017
- 2017-12-15 CN CN201711348278.8A patent/CN108023963B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101778001A (en) * | 2010-01-15 | 2010-07-14 | 瑞斯康达科技发展股份有限公司 | Method and system for mutual compatibility of multi-version between SNMP (Simple Network Management Protocol) agent and managed apparatus |
CN102650931A (en) * | 2012-04-01 | 2012-08-29 | 华为技术有限公司 | Method and system for writing data |
CN103428677A (en) * | 2012-05-17 | 2013-12-04 | 上海晨兴希姆通电子科技有限公司 | Method for sending grouped service data and method for receiving message sent by signaling channel |
CN103227827A (en) * | 2013-04-24 | 2013-07-31 | 北京小米科技有限责任公司 | Resource request method and device |
CN104348877A (en) * | 2013-08-06 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for transmitting Http (hypertext transport protocol) request message |
CN105491078A (en) * | 2014-09-15 | 2016-04-13 | 阿里巴巴集团控股有限公司 | Data processing method and device in SOA system, and SOA system |
US20170278005A1 (en) * | 2016-03-23 | 2017-09-28 | Interactive Intelligence Group, Inc. | Technologies for auto discover and connect to a rest interface |
CN106664312A (en) * | 2016-11-04 | 2017-05-10 | 北京小米移动软件有限公司 | Protocol data unit (PDU) pack generation method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN108023963B (en) | 2019-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8782799B2 (en) | Triggering a private browsing function of a web browser application program | |
US9888089B2 (en) | Client side cache management | |
US6775743B2 (en) | Content caching with special handling of multiple identical requests for content | |
US20170272499A1 (en) | Method and device for loading webpage | |
US20110320522A1 (en) | Context-specific network resource addressing model for distributed services | |
US11570135B2 (en) | Routing for large server deployments | |
US20120117253A1 (en) | Methods for reducing latency in network connections and systems thereof | |
WO2014004308A1 (en) | Device, system, and method for client-governed session persistency between one or more clients and servers of a data center | |
JP2013522736A (en) | Method and system for providing a message including a universal resource locator | |
CN104038520B (en) | A kind of multi version distributive resource managing method and system | |
US20120117270A1 (en) | Methods for reducing latency in network connections using automatic redirects and systems thereof | |
CN105743945A (en) | Method and system for downloading files on the basis of switching download sources | |
CN103873597A (en) | Distributed webpage downloading method and system | |
US20230315793A1 (en) | Automated web page accessing | |
CN104113599A (en) | Caching method and device and proxy server | |
CN105556918B (en) | A kind of resource downloading method and electronic equipment | |
WO2017185632A1 (en) | Data transmission method and electronic device | |
CN108023963B (en) | A kind of data processing method and device | |
US20040158615A1 (en) | Priority web browsing | |
WO2017067373A1 (en) | Data push method and apparatus | |
CN106790176B (en) | Method and system for accessing network | |
CN103181140A (en) | Method, media server and terminal device for identifying service request type | |
CN109600452B (en) | Server cluster, message pushing method and related server | |
CN108509243A (en) | The method, apparatus and electronic equipment of a kind of page load in application | |
CN107231567B (en) | Message transmission method, device and system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |