Mobile Query Buffering via Priority API
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Mobile applications face performance issues due to simultaneous queries from different widgets colliding with each other when accessing a database, leading to lag, freezing, or crashing.
Innovation Solution
An application programming interface dynamically determines priority levels for queries based on factors like timestamp and widget visibility, buffering them until processing resources are available, and executes them based on these priorities to prevent collisions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Speed
If multiple queries are processed simultaneously from different widgets, then query response time is reduced, but query collisions occur causing application lag or crash
Solution Approach 1:
The system performs preliminary actions by buffering queries before they are executed. Queries are collected and stored in a buffer structure, then processed in an organized manner once ready, preventing collisions before they occur during simultaneous execution attempts.
Solution Approach 2:
The patent introduces an intermediary buffering mechanism between query generation and query execution. This buffer acts as a mediator that receives queries from multiple widgets and releases them to the database in a controlled sequence, eliminating direct collisions while maintaining responsiveness.
2Reliability
If queries are buffered and executed sequentially, then query collisions are prevented, but processing time increases
Solution Approach 1:
The system implements dynamic query buffering where the buffer management is adaptive. Queries are buffered when collisions are detected or predicted, and processed when resources are available. The buffering mechanism dynamically adjusts based on system state, widget visibility, and query priorities rather than using a fixed sequential approach.
Solution Approach 2:
The patent changes parameters such as query priority levels and buffer management strategies based on system conditions. By adjusting execution timing and priority parameters dynamically, the system balances between preventing collisions and minimizing processing delay.
3Ease of operation
If all queries are processed immediately, then responsiveness is maintained, but resource strain increases causing application to freeze
Solution Approach 1:
The system performs preliminary buffering of queries before execution. By collecting and preparing queries in advance in a structured buffer, the system can process them efficiently when resources are available without immediate strain, maintaining responsiveness while managing resource consumption.
Solution Approach 2:
The buffering mechanism ensures continuous useful action by maintaining a queue of ready queries. Instead of idle waiting or uncontrolled processing, the system continuously manages query buffers and executes them when resources permit, ensuring smooth operation without freezing.
Data Source
AI summary
Methods, systems, and apparatus, including computer programs encoded on a computer storage medium for intelligently buffering queries from a mobile application. In one aspect, the method may include receiving, by an application programming interface executing on a mobile device, multiple queries, from different software widgets executing on a mobile application, for data from a database stored on the mobile device, determining, by the application programming interface, a level of priority for each query of the multiple queries, providing, by the application programming interface, each of the multiple queries for storage in a data buffer until processing resources of the mobile device are available to process one or more of the multiple queries, and processing each query of the multiple queries against the database stored on the mobile device based on the assigned level of priority.


