CN108241657A - A kind of web data list processing method and processing device - Google Patents
A kind of web data list processing method and processing device Download PDFInfo
- Publication number
- CN108241657A CN108241657A CN201611210340.2A CN201611210340A CN108241657A CN 108241657 A CN108241657 A CN 108241657A CN 201611210340 A CN201611210340 A CN 201611210340A CN 108241657 A CN108241657 A CN 108241657A
- Authority
- CN
- China
- Prior art keywords
- web
- background server
- index
- web front
- field name
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/972—Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application provides a kind of web data list processing method and processing devices.The method includes:Web front-end and background server establish connection;Build Hash maps table;Web front-end sends subscription condition to background server;Background server receives the subscription condition request that web front-end is sent;The target data record is returned to web front-end by background server according to target data record of the subscription condition request structure comprising index and value;Web front-end receives the target data record, establishes web indexed caches;Web front-end inquires web data list by the web indexed caches, performs page turning, filtering and/or sorting operation.Said program reduces weight to transmission data using indexed mode, avoids transmission waste;Data search is carried out based on indexed cache, reduces the communication frequency of web front-end and background server, the fluency of operation has been ensured, has improved user experience.
Description
Technical field
This application involves technical field of data transmission, particularly, are related to a kind of web data list processing method and processing device.
Background technology
Business datum, also referred to as equipment fault, each business datum there is over 100 fields attribute, mainly comprising word
Two kinds of allusion quotation class data and character string class data can be used to describe the failure of equipment generation, mainly include location of fault information, if
Standby configuration information(Version, model etc.), type, region, the state of failure, Breakdown Maintenance suggestion, to the shadow of business, equipment
It rings, associated facility information etc..
Above-mentioned business datum is based on web lists, and to meet certain pattern, comprehensive method easy to operation is presented.And web
Table data supports real-time change, including newly-increased data, change data with existing field value, deletes over capacity data etc..
In the prior art, web front-end receives the business datum record queue of background server transmission, it is recorded per data
Real all comprising field name and value, wherein field name is the same in all data records, and only value is different.Namely such as
Fruit transmits 100,000 business datum records in web front-end and background server, then the field name in each data record will
Transmission 100,000 times is repeated, causes the transmission waste of very big field redundancies and extreme.
In the prior art, the operations such as secondary filter, sequence, dragging are carried out to web data list, be required for temporarily to backstage
Server-side sends request, waits for the response of background server, i.e. background server pushes data into web front-end.Whole process
Including web front-end operation organization condition, calling interface, it is transferred to background server;Background server performs logic, tissue number
Web front-end is transferred to according to, propelling data.These processes are required for expending the time, particularly when web data list size is bigger,
The above process takes bigger, leads to subsequently there is delay for the operations such as sequence, dragging, filtering of web data list, user feels
Know that insufficient, experience is poor.
Invention content
The application provides a kind of web data list processing method and processing device, for solve web front-end in the prior art and after
The waste of platform server-side data transmission, communication are frequent, and web front-end datarams occupy big, data list operating delay, user experience
The problem of poor.
A kind of web data list processing method disclosed in the present application, including:
Web front-end connects background server;
The Hash maps table of web front-end and background server structure comprising field name and index;
Web front-end sends subscription condition to background server;
Background server receives the subscription condition request that web front-end is sent;
Background server is according to target data record of the subscription condition request structure comprising index and value, and by the target
Data record returns to web front-end;
Web front-end receives the target data record that background server returns, and establishes web indexed caches;
Web front-end draws web data list according to the subscription condition;
Web front-end inquires web data list by the web indexed caches, performs page turning, filtering and/or sequence behaviour
Make.
Further, the Hash maps table of the web front-end and background server structure comprising field name and index, packet
It includes:
Background server access relational databases obtain field name, parse the field name and the corresponding number of field name, described
The corresponding number of field name indexes, and builds the Hash maps table from field name to index, is buffered in the memory of background server
In;
Web front-end obtains the Hash maps table slave field name to index of background server caching, is buffered in the memory of web front-end
In;It is converted, is built from the Hash maps table for indexing field name according to the Hash maps table from field name to index,
Also it is buffered in the memory of web front-end.
Further, the background server receives the subscription condition request that web front-end is sent, including:
Background server receives the subscription condition that web front-end is sent, and the subscription condition is informed the data area that needs are subscribed to, held
Row registration service after subscribing to successfully, inquires database information, starts brush data thread, monitoring service data.
Further, the background server is according to target data of the subscription condition request structure comprising index and value
Record, and the target data record is returned into web front-end, including:
Background server obtains business datum from database and real-time message queue, the slave field cached according to background server
Name is to the Hash maps table of index, and index of reference is instead of the field name in the business datum, target of the structure comprising index and value
Data record, and the target data record is returned into web front-end.
Further, the web front-end receives the target data record that background server returns, and establishes web indexes
Caching, including:
The target data record of preset quantity is loaded and shown for the first time;
The supplement for making resource according to the target data record of return is converted:
The index in the target data record is corresponded to from the Hash maps table for indexing field name by what web front-end cached
To field name, further according to the field name, lookup is worth corresponding resource apparatus type from resource dictionary;
Transformed index and resource apparatus type or index and value will be supplemented as resource data, be loaded into web indexed caches
In, the web indexed caches are stored in web front-end;
Web front-end keeps long connection with background server, newly-increased target data record is obtained from background server, by the mesh
Mark data record is added to after making the supplement conversion of resource in the web indexed caches, until the web indexed caches total capacity
Reach the setting value of the capacity.
Preferably, the target data record of background server transmission is received in the web front-end, establishes web indexed caches
The step of after, further include:
Web front-end obtains the target data record of change from background server, updates web indexed caches;
Delete the indexed cache data more than the web indexed caches capacity setting value.
Further, the web front-end draws web data list according to the subscription condition, including:
Web front-end query user interface indicating template parses content that the row head of the indicating template includes and the content
Display order draws web data list based on the display order of the content and the content.
Further, the web front-end inquires web data list by web indexed caches, performs page turning, mistake
Filter and/or sorting operation, including:
The up-down scroll bar in the web data list is dragged, performs page turn over operation, the slave field name cached by web front-end
To the Hash maps table of index, index is corresponded to from field name, scroll bar is obtained from web indexed caches further according to the index
The corresponding data of drag area are simultaneously shown;
The funnel icon in certain row head in the web data list is chosen, expansion enumerates value list, and select at least one piece
Act value performs filter operation, and the Hash maps table slave field name to index cached by web front-end is corresponded to from field name
Index crosses filter data, and by the data-pushing after filtering to user interface further according to the index from web indexed caches;
Certain row in the web data list are chosen, perform sorting operation, by web front-end caching slave field name to index
Hash maps table, correspond to index from field name, from web indexed caches arranged the data of the row according to index
Sequence, data rearrangement, and by the data-pushing after rearrangement to user interface.
A kind of web data list processing unit disclosed in the present application, including:
Link block connects background server for web front-end;
Hash maps table builds module, for the Hash maps of web front-end and background server structure comprising field name and index
Table;
Sending module sends subscription condition to background server for web front-end;
Receiving module receives the subscription condition request of web front-end transmission for background server;
Respond module is remembered for background server according to target data of the subscription condition request structure comprising index and value
Record, and the target data record is returned into web front-end;
Web indexed caches build module, and the target data record of background server return is received for web front-end, establish
Web indexed caches;
Web data list drafting module draws web data list for web front-end according to the subscription condition;
Enquiry module inquires web data list by the web indexed caches for web front-end, performs page turning, mistake
Filter and/or sorting operation.
Further, the web indexed caches structure module, including:
Display unit, for loading and showing the target data record of preset quantity for the first time;
Converting unit for making the conversion of the supplement of resource according to the target data record of return, specifically includes:
The index in the target data record is corresponded to from the Hash maps table for indexing field name by what web front-end cached
To field name, further according to the field name, lookup is worth corresponding resource apparatus type from resource dictionary;
Transformed index and resource apparatus type or index and value will be supplemented as resource data, be loaded into web indexed caches
In, the web indexed caches are stored in web front-end;
Adding device keeps long connection for web front-end and background server, newly-increased target data is obtained from background server
Record is added in the web indexed caches after the target data record to be made to the supplement conversion of resource, until the web
Indexed cache total capacity reaches the setting value of the capacity.
Compared with prior art, the application has the following advantages:
The application effectively solves the redundant field of transmission, carries by replacing field name in web front-end and background server index of reference
Efficiency of transmission has been risen, has ensured the data cached feasibility of web front-end;Newly-increased web front-end indexed cache, less web front-end with
The interaction frequency of background server;The indexed cache of web front-end is walked in the operation of web data list query, is improved operating efficiency, is carried
User's perception is risen.
Description of the drawings
Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as the limitation to the application.And whole
In a attached drawing, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of flow chart of web data list processing method of one embodiment of the application;
Fig. 2 is a kind of flow chart of web data list processing method of another embodiment of the application;
Fig. 3 is a kind of structure diagram of web data list processing unit of one embodiment of the application.
Specific embodiment
Above-mentioned purpose, feature and advantage to enable the application are more obvious understandable, below in conjunction with the accompanying drawings and specific real
Mode is applied to be described in further detail the application.
In the description of the present application, it is to be understood that " multiple " are meant that two or more, unless otherwise bright
It is really specific to limit.Term " comprising ", "comprising" and similar terms are understood to open term, i.e., " including/packet
Contain but be not limited to ".Term "based" is " being based at least partially on ".Term " embodiment " expression " at least one embodiment ";
Term " another embodiment " expression " at least one other embodiment ".The related definition of other terms will be described below in
Go out.
Web front-end is based on hypertext markup language(HTML, Hyper Text Markup Language)5 platforms are established
JavaScript object under Ember.Js frames.Each data object can be used to describe equipment generation primary fault.Backstage takes
Business end operation java service providing datas, both ends carry out subscription data, connection object PB based on websocket long connections
(Protocol Buffers), serializing and the antitone sequence of structural data are done based on PB.
With reference to Fig. 1, a kind of flow chart of web data list processing method of the embodiment of the present application is shown, this preferred method is implemented
Example includes the following steps:
Step S101:Web front-end connects background server.
Step S102:The Hash maps table of web front-end and background server structure comprising field name and index(Hash
Map), specifically include:
Background server access relational databases(RDB, Relational Database), field name is obtained, parses the field
Name and the corresponding number of field name, corresponding number of the field name index, and build the Hash Map from field name to index,
It is buffered in the memory of background server;
Web front-end calling interface obtains the Hash Map slave field name to index of background server caching, before being buffered in web
In the memory at end;It is converted, is built from the Hash for indexing field name according to the Hash Map from field name to index
Map is also buffered in the memory of web front-end.
The field name is searched when can be used for background server inter-process data and used to the Hash Map of index,
Web front-end inquiry can also be provided and synchronize consistent field name to the mapping relations of index.
It is synchronous with background server Hash Map's that above-mentioned steps realize web front-end, while also constructs from indexing
The Hash Map of field name make web front-end replace field name with index of reference during background server transmission data, only transmit and really need to
The data wanted avoid field redundancies and transmission from wasting;Meanwhile this " weight reducing " to data, be conducive to web front-end index it is slow
It deposits, only caches the data record really needed, the repetition of data field name is avoided to store and reduce the memory occupied, improves storage
Efficiency;Web front-end is made all to carry out the inquiry operation of data list for indexed cache, does not need to obtain temporarily from background server
It takes, greatly reduces the communication frequency of web front-end and background server, greatly lift pins are to the efficiency of web data list operation,
It ensures the fluency of operation, promotes user's perception and satisfaction.
Step S103:Web front-end sends subscription condition to background server.
After web front-end sends subscription condition, open and subscribe to data.
Step S104:Background server receives the subscription condition request that web front-end is sent.It specifically includes:
Background server receives the subscription condition that web front-end is sent, and the subscription condition informs what background server needs were subscribed to
Data area;
Perform registration service;
After subscribing to successfully, database information is inquired;Start brush data thread, monitoring service data.
Step S105:Background server is remembered according to target data of the subscription condition request structure comprising index and value
Record, and the target data record is returned into web front-end.It specifically includes:
Background server obtains business datum from database and real-time message queue, according to field name to the Hash of index
Map, index of reference replace the field name in the business datum, target data record of the structure comprising index and value, by the mesh
It marks data record and returns to web front-end.
Step S106:Web front-end receives the target data record that background server returns, and establishes web indexed caches.
It specifically includes:
Step(1):The target data record of preset quantity is loaded and shown for the first time;Preferably, preset quantity is 1000.
During specific implementation, completion and display data, such as 100 can be preferentially loaded;Remaining data is subsequently gradually synchronized, it is excellent
Choosing is synchronized to 1000, that is, completes to load and show the target data record of preset quantity for the first time.
Step(2):The supplement that resource is done according to the target data record of return is replaced, and is specifically included:
The index in the target data record is corresponded to from the Hash Map for indexing field name by what web front-end cached
Field name, further according to the field name, lookup is worth corresponding resource apparatus type from resource dictionary;
Transformed index and resource apparatus type will be supplemented as resource data, be loaded into web indexed caches, the web
Indexed cache is stored in web front-end.
Such as, a target data record of background server back to web front-end is index " 7 " and value " 200 ", needs to turn
Change corresponding resource apparatus type into.
Index " 7 " is corresponded to by field name from the Hash Map for indexing field name according to web front-end caching first
“object_class”。
Similar field(“object_class”)Shared about more than 100, these field names largely have resource dictionary,
The resource dictionary is stored in the storage of system-level resource, by system maintenance, the corresponding resource dictionary quantity of each field name
Nearly all it is more than tens, and the ID of resource dictionary is that value " 200 " is repeated between field name, but the money of certain field name
Source dictionary ID is that value is unique.
So finding field name " object_class " by indexing " 7 ", the range for reducing lookup value improves lookup effect
Rate avoids being possible to debugging.
Then, the resource dictionary range limited by field name " object_class ", finds the corresponding money of value " 200 "
Source device type " base station controller(BSC, Base Station Controller)”.
" 7 " will be indexed and resource apparatus type " BSC " is used as the resource data, be loaded into web indexed caches.
It should be noted that some field names are generic field names, without corresponding resource dictionary, as String field,
Time field, amount field etc..The value of these fields does not need to search corresponding resource apparatus type, directly by the number of targets
It is loaded into web indexed caches as the resource data according to the index in record and value.
The web indexed caches are user interfaces(UI, User Interface)Available data.
Step(3):Web front-end keeps long connection with background server, and newly-increased target data is obtained from background server
Record, makees step by the target data record(2)In resource supplement conversion after be added in the web indexed caches,
Until the web indexed caches total capacity reaches the setting value of the capacity;The setting value preferably 100,000.
Step S107:Web front-end draws web data list according to the subscription condition.It specifically includes:
Web front-end inquires UI indicating templates, and it is suitable to parse the display of content and the content that the row head of the indicating template includes
Sequence draws web data list based on the display order of the content and the content.
Step S108:Web front-end inquires web data list by web indexed caches, perform page turning, filtering and/
Or sorting operation, including:
The up-down scroll bar in the web data list is dragged, performs page turn over operation, the slave field name cached by web front-end
To the Hash Map of index, index is corresponded to from field name, scroll bar is obtained from web indexed caches further according to the index drags
The dynamic corresponding data in region are simultaneously shown;
The funnel icon in certain row head in the web data list is chosen, expansion enumerates value list, and select at least one piece
Act value performs filter operation, and the Hash Map slave field name to index cached by web front-end correspond to rope from field name
Draw, filter data is crossed from web indexed caches, and by the data-pushing after filtering to UI further according to the index;
Certain row in the web data list are chosen, perform sorting operation, by web front-end caching slave field name to index
Hash Map, correspond to index from field name, from web indexed caches be ranked up the data of the row according to index,
Data rearrangement records, and by the data-pushing after rearrangement to UI.
The aforesaid operations of web front-end are inquired directly against web indexed caches, are then directly bound to query result
UI is not interacted between background server and network transmission is also not present.
With reference to Fig. 2, a kind of another embodiment of web data list processing method of the application is shown.
Wherein, step S201- steps S207 is identical with above-described embodiment S101-S107, step S209 and step S108 phases
Together, it repeats no more.
It may also include the maintenance step S208 for web indexed caches after step S207:
Web front-end obtains the target data record of change from background server, after doing the supplement conversion of resource, replaces original web
Indexed cache data are realized web indexed caches and are updated;
When web indexed caches total capacity is more than the setting value of the capacity, and has new target data record transmission, delete super
Go out the indexed cache data of web capacity setting values, the supplement that the new target data record is done to resource is converted, and supplement is turned
Data after changing are added in the web indexed caches.
Descending arranges the web indexed caches acquiescence in chronological order, and the indexed cache of newest transmission is stored in web indexes
Cache most forefront.When needing to delete indexed cache data, delete most end in the web indexed caches and transmit earliest rope
Draw it is data cached, by the new target data record do resource supplement conversion after be added in the web indexed caches.Its
The number of data of middle deletion is identical with the target data record item number newly transmitted.
Above-mentioned delet method is preferably provided with for the present invention, web indexed caches other put in order, to delete web indexes slow
The Data Position deposited is not limited by the application foregoing description, and those skilled in the art are known, according to the application, the sequence
Other setting means may be used.
It is simple in order to describe for aforementioned each method embodiment, therefore it is all expressed as to a series of combination of actions, but this
The technical staff in field should know that the application is not limited by described sequence of movement, certain because according to the application
Step may be used other and serially or simultaneously perform;Secondly, those skilled in the art should also know, above method embodiment is equal
Belong to preferred embodiment, necessary to involved action and module not necessarily the application.
With reference to Fig. 3, show the structure diagram of one embodiment of the application web data list processing unit, specifically include:
Link block 31 connects background server for web front-end;
Hash maps table builds module 32, for the Hash of web front-end and background server structure comprising field name and index
Map;
Sending module 33 sends subscription condition to background server for web front-end;
Receiving module 34 receives the subscription condition request of web front-end transmission for background server;
Respond module 35 is remembered for background server according to target data of the subscription condition request structure comprising index and value
Record, and the target data record is returned into web front-end;
Web indexed caches build module 36, and the target data record of background server return is received for web front-end, is built
Vertical web indexed caches;
Web ordered series of numbers tables drafting module 37 draws web data list for web front-end according to the subscription condition;
Enquiry module 38 inquires web data list by the web indexed caches for web front-end, execution page turning,
Filtering and/or sorting operation.
The web indexed caches build module 36, specifically include:
Display unit, for loading and showing the target data record of preset quantity for the first time;The preset quantity preferably 1000;
Converting unit for making the conversion of the supplement of resource according to the target data record of return, specifically includes:
The index in the target data record is corresponded to from the Hash Map for indexing field name by what web front-end cached
Field name, further according to the field name, lookup is worth corresponding resource apparatus type from resource dictionary;
Transformed index and resource apparatus type or index and value will be supplemented as resource data, be loaded into web indexed caches
In, the web indexed caches are stored in web front-end.
Adding device keeps long connection for web front-end and background server, newly-increased target is obtained from background server
Data record is added in the web indexed caches after the target data record to be made to the supplement conversion of resource, until described
Web indexed cache total capacities reach the setting value of the capacity.The setting value preferably 100,000.
The enquiry module 38 specifically includes:
Page turning unit, for performing page turn over operation:The up-down scroll bar in the web data list is dragged, performs page turn over operation,
By web front-end cache the Hash Map slave field name to index, correspond to index from field name, further according to it is described index from
The corresponding data of scroll bar drag area are obtained in web indexed caches and are shown;
Filter element, for performing filter operation:The funnel icon in certain row head in the web data list is chosen, is unfolded
Value list is enumerated, and selects at least one enumerated value, performs filter operation, by web front-end caching slave field name to index
Hash Map, correspond to index from field name, further according to it is described index from web indexed caches cross filter data, and will filtering
Data-pushing afterwards is to UI;
Sequencing unit, for performing sorting operation:Certain row in the web data list are chosen, sorting operation is performed, passes through
The Hash Map slave field name to index of web front-end caching, index is corresponded to from field name, slow from web indexes according to index
It deposits the middle data by the row to be ranked up, data rearrangement record, and by the data-pushing after rearrangement to UI.
Preferably, described device can also include maintenance module, for safeguarding the web indexed caches, specifically include:
Updating unit, for updating the web indexed caches:Web front-end obtains the target data note of change from background server
Record after doing the supplement conversion of resource, replaces original web indexed caches data, web indexed caches is realized and are updated;
Unit is deleted, for deleting extra indexed cache:When web indexed caches total capacity be more than the capacity setting value,
And when having new target data record transmission, the indexed cache data beyond web capacity setting values are deleted, by the new target
Data record does the supplement conversion of resource, will supplement transformed data and is added in the web indexed caches.
Descending arranges the web indexed caches acquiescence in chronological order, and the indexed cache of newest transmission is stored in web indexes
Cache most forefront.When needing to delete indexed cache data, delete most end in the web indexed caches and transmit earliest rope
Draw it is data cached, by the new target data record do resource supplement conversion after be added in the web indexed caches.Its
The number of data of middle deletion is identical with the target data record item number newly transmitted.
It should be noted that above device embodiment belongs to preferred embodiment, involved unit and module are not necessarily originally
Necessary to application.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with
The difference of other embodiment, just to refer each other for identical similar part between each embodiment.For the dress of the application
For putting embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, related part is referring to method reality
Apply the part explanation of example.
It above to a kind of web data list processing method and processing device provided herein, is described in detail, herein
In apply specific case the principle and implementation of this application are described, the explanation of above example is only intended to sides
Assistant solves the present processes and its core concept;Meanwhile for those of ordinary skill in the art, the think of according to the application
Think, in specific embodiments and applications there will be changes, in conclusion the content of the present specification should not be construed as pair
The limitation of the application.
Claims (10)
1. a kind of web data list processing method, which is characterized in that, the method includes:
Web front-end connects background server;
The Hash maps table of web front-end and background server structure comprising field name and index;
Web front-end sends subscription condition to background server;
Background server receives the subscription condition request that web front-end is sent;
Background server is according to target data record of the subscription condition request structure comprising index and value, and by the target
Data record returns to web front-end;
Web front-end receives the target data record that background server returns, and establishes web indexed caches;
Web front-end draws web data list according to the subscription condition;
Web front-end inquires web data list by the web indexed caches, performs page turning, filtering and/or sequence behaviour
Make.
2. according to the method described in claim 1, it is characterized in that, the web front-end and background server structure include field
The Hash maps table of name and index, including:
Background server access relational databases obtain field name, parse the field name and the corresponding number of field name, described
The corresponding number of field name indexes, and builds the Hash maps table from field name to index, is buffered in the memory of background server
In;
Web front-end obtains the Hash maps table slave field name to index of background server caching, is buffered in the memory of web front-end
In;It is converted, is built from the Hash maps table for indexing field name according to the Hash maps table from field name to index,
Also it is buffered in the memory of web front-end.
3. according to the method described in claim 1, it is characterized in that, the background server receives the subscription that web front-end is sent
Conditional request, including:
Background server receives the subscription condition that web front-end is sent, and the subscription condition is informed the data area that needs are subscribed to, held
Row registration service after subscribing to successfully, inquires database information, starts brush data thread, monitoring service data.
4. according to the method described in claim 2, it is characterized in that, the background server asks structure according to the subscription condition
The target data record comprising index and value is built, and the target data record is returned into web front-end, including:
Background server obtains business datum from database and real-time message queue, the slave field cached according to background server
Name is to the Hash maps table of index, and index of reference is instead of the field name in the business datum, target of the structure comprising index and value
Data record, and the target data record is returned into web front-end.
5. according to the method described in claim 1, it is characterized in that, the web front-end receives the described of background server return
Target data record establishes web indexed caches, including:
The target data record of preset quantity is loaded and shown for the first time;
The supplement for making resource according to the target data record of return is converted:
The index in the target data record is corresponded to from the Hash maps table for indexing field name by what web front-end cached
To field name, further according to the field name, lookup is worth corresponding resource apparatus type from resource dictionary;
Transformed index and resource apparatus type or index and value will be supplemented as resource data, be loaded into web indexed caches
In, the web indexed caches are stored in web front-end;
Web front-end keeps long connection with background server, newly-increased target data record is obtained from background server, by the mesh
Mark data record is added to after making the supplement conversion of resource in the web indexed caches, until the web indexed caches total capacity
Reach the setting value of the capacity.
6. according to the method described in claim 1, it is characterized in that, receive the mesh of background server transmission in the web front-end
After the step of marking data record, establishing web indexed caches, further include:
Web front-end obtains the target data record of change from background server, updates web indexed caches;
Delete the indexed cache data more than the web indexed caches capacity setting value.
7. according to the method described in claim 1, it is characterized in that, the web front-end draws web numbers according to the subscription condition
According to list, including:
Web front-end query user interface indicating template parses content that the row head of the indicating template includes and the content
Display order draws web data list based on the display order of the content and the content.
8. according to the method described in claim 1, it is characterized in that, the web front-end by web indexed caches to web data
List is inquired, and performs page turning, filtering and/or sorting operation, including:
The up-down scroll bar in the web data list is dragged, performs page turn over operation, the slave field name cached by web front-end
To the Hash maps table of index, index is corresponded to from field name, scroll bar is obtained from web indexed caches further according to the index
The corresponding data of drag area are simultaneously shown;
The funnel icon in certain row head in the web data list is chosen, expansion enumerates value list, and select at least one piece
Act value performs filter operation, and the Hash maps table slave field name to index cached by web front-end is corresponded to from field name
Index crosses filter data, and by the data-pushing after filtering to user interface further according to the index from web indexed caches;
Certain row in the web data list are chosen, perform sorting operation, by web front-end caching slave field name to index
Hash maps table, correspond to index from field name, from web indexed caches arranged the data of the row according to index
Sequence, data rearrangement, and by the data-pushing after rearrangement to user interface.
9. a kind of web data list processing unit, which is characterized in that described device includes:
Link block connects background server for web front-end;
Hash maps table builds module, for the Hash maps of web front-end and background server structure comprising field name and index
Table;
Sending module sends subscription condition to background server for web front-end;
Receiving module receives the subscription condition request of web front-end transmission for background server;
Respond module is remembered for background server according to target data of the subscription condition request structure comprising index and value
Record, and the target data record is returned into web front-end;
Web indexed caches build module, and the target data record of background server return is received for web front-end, establish
Web indexed caches;
Web data list drafting module draws web data list for web front-end according to the subscription condition;
Enquiry module inquires web data list by the web indexed caches for web front-end, performs page turning, mistake
Filter and/or sorting operation.
10. device according to claim 9, which is characterized in that the web indexed caches build module, including:
Display unit, for loading and showing the target data record of preset quantity for the first time;
Converting unit for making the conversion of the supplement of resource according to the target data record of return, specifically includes:
The index in the target data record is corresponded to from the Hash maps table for indexing field name by what web front-end cached
To field name, further according to the field name, lookup is worth corresponding resource apparatus type from resource dictionary;
Transformed index and resource apparatus type or index and value will be supplemented as resource data, be loaded into web indexed caches
In, the web indexed caches are stored in web front-end;
Adding device keeps long connection for web front-end and background server, newly-increased target data is obtained from background server
Record is added in the web indexed caches after the target data record to be made to the supplement conversion of resource, until the web
Indexed cache total capacity reaches the setting value of the capacity.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611210340.2A CN108241657B (en) | 2016-12-24 | 2016-12-24 | Web data list processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611210340.2A CN108241657B (en) | 2016-12-24 | 2016-12-24 | Web data list processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108241657A true CN108241657A (en) | 2018-07-03 |
CN108241657B CN108241657B (en) | 2022-01-07 |
Family
ID=62704537
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611210340.2A Active CN108241657B (en) | 2016-12-24 | 2016-12-24 | Web data list processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108241657B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651406A (en) * | 2020-05-21 | 2020-09-11 | 杭州明讯软件技术有限公司 | Automatic carrier scheduling system file reading method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499097A (en) * | 2009-03-16 | 2009-08-05 | 浙江工商大学 | Hash table based data stream frequent pattern internal memory compression and storage method |
CN102479207A (en) * | 2010-11-29 | 2012-05-30 | 阿里巴巴集团控股有限公司 | Information search method, system and device |
CN102831120A (en) * | 2011-06-15 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Data processing method and system |
CN104077397A (en) * | 2014-07-01 | 2014-10-01 | 成都康赛信息技术有限公司 | Response method for distributed big data classification retrieval webpage |
CN104462455A (en) * | 2014-12-16 | 2015-03-25 | 北京京东尚科信息技术有限公司 | Method and device for displaying and processing network data |
US20150178277A1 (en) * | 2013-12-23 | 2015-06-25 | Tata Consultancy Services Limited | System and method predicting effect of cache on query elapsed response time during application development stage |
CN105122243A (en) * | 2013-03-15 | 2015-12-02 | 亚马逊科技公司 | Scalable analysis platform for semi-structured data |
US20160080833A1 (en) * | 2013-04-16 | 2016-03-17 | Canon Kabushiki Kaisha | Methods, devices, and computer programs for streaming partitioned timed media data |
US20160217135A1 (en) * | 2014-04-30 | 2016-07-28 | International Business Machines Corporation | Indexing and searching heterogenous data entities |
-
2016
- 2016-12-24 CN CN201611210340.2A patent/CN108241657B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101499097A (en) * | 2009-03-16 | 2009-08-05 | 浙江工商大学 | Hash table based data stream frequent pattern internal memory compression and storage method |
CN102479207A (en) * | 2010-11-29 | 2012-05-30 | 阿里巴巴集团控股有限公司 | Information search method, system and device |
CN102831120A (en) * | 2011-06-15 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Data processing method and system |
CN105122243A (en) * | 2013-03-15 | 2015-12-02 | 亚马逊科技公司 | Scalable analysis platform for semi-structured data |
US20160080833A1 (en) * | 2013-04-16 | 2016-03-17 | Canon Kabushiki Kaisha | Methods, devices, and computer programs for streaming partitioned timed media data |
US20150178277A1 (en) * | 2013-12-23 | 2015-06-25 | Tata Consultancy Services Limited | System and method predicting effect of cache on query elapsed response time during application development stage |
US20160217135A1 (en) * | 2014-04-30 | 2016-07-28 | International Business Machines Corporation | Indexing and searching heterogenous data entities |
CN104077397A (en) * | 2014-07-01 | 2014-10-01 | 成都康赛信息技术有限公司 | Response method for distributed big data classification retrieval webpage |
CN104462455A (en) * | 2014-12-16 | 2015-03-25 | 北京京东尚科信息技术有限公司 | Method and device for displaying and processing network data |
Non-Patent Citations (2)
Title |
---|
PHENG-UN LIM 等: ""Clustered Segment Index Scheme for P2P VOD Service on Virtual Mesh Overlay Network"", 《THE TRANSACTIONS OF THE KOREAN INSTITUTE OF ELECTRICAL ENGINEERS》 * |
任志国 等: "《Access 2000从入门到精通》", 29 February 2000, 浙江科学技术出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111651406A (en) * | 2020-05-21 | 2020-09-11 | 杭州明讯软件技术有限公司 | Automatic carrier scheduling system file reading method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108241657B (en) | 2022-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102185864B1 (en) | Server-side rendering method and system of native content for presentation | |
CN103853727B (en) | Improve the method and system of big data quantity query performance | |
CN110609865B (en) | Information synchronization method, device and system | |
CN109413127B (en) | Data synchronization method and device | |
CN110149423A (en) | Domain name processing method, device, readable storage medium storing program for executing and electronic equipment | |
CN106462575A (en) | Design and implementation of clustered in-memory database | |
CN105335472B (en) | A kind of method and device updating data query engine configured list | |
CN111881223B (en) | Data management method, device, system and storage medium | |
CN106528871A (en) | Method for updating information of engineering data points in industrial control system on line | |
CN108259562A (en) | A kind of method of data synchronization and device based on multi-endpoint | |
CN103198108B (en) | A kind of index data update method, retrieval server and system | |
CN102882974A (en) | Method for saving website access resource by website identification version number | |
CN104423982B (en) | The processing method and processing equipment of request | |
EP2767912A2 (en) | In-memory real-time synchronized database system and method | |
CN103383687A (en) | Page processing method and device | |
CN109815432A (en) | A kind of method of the method and page static of whole station static | |
CN103200278A (en) | Source station file updating and releasing method and cache file updating method | |
CN108780458A (en) | A kind of page cache processing method, device and server | |
EP3842955A2 (en) | File directory traversal method, apparatus, device, and medium | |
CN111221469A (en) | Method, device and system for synchronizing cache data | |
CN111414361A (en) | Label data storage method, device, equipment and readable storage medium | |
CN112650545A (en) | Configuration management system, method and storage medium | |
CN107169047A (en) | A kind of method and device for realizing data buffer storage | |
CN106254411B (en) | For providing system, server system and the method for service | |
CN108241657A (en) | A kind of web data list processing method and processing device |
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 |