Comments (5)
Another solution is to change DB design from "large, flat table with TEXT(call-id,tags,from/to users) searches on it", to a set of tables, reflecting possible search criteria. The purpose of this is to substitute "text search" with "integer JOINING" and subset of special, optimized, criteria dependent queries. It will make more complex WRITE operation, but will make "lighter" READing.
from homer-api.
yes, this can be bad for "NORMAL DB" operation, but here we are talking about calls/registrations transactions. So, how it works in the real life:
- NOC has a ticket: calls or registrations doesn't work.
2.
a. NOC checks calls OR registrations ( first logical sharding) + time range (second logical sharding)
or
b. NOC can search in all transactions(call, registrations, rest) for specific the time range (logical sharding) + user id (RURI, FROM, PAI) (index scope)
in the both cases the result will be smaller than this limit and will absolutely compatible with "NOC's logic"
create temporally mysql's table and do order/limit inside make for me no sense, because much quicker and better manipulate with results inside php: concatenate results and do sorting (we do usort already). This is also correct way for multiple DB nodes.
maximum that we can do, it's create special API call and do inside aggregation for each transaction with original limit, sort it and return limited data.
from homer-api.
Ok, thanks. Now I see and will assume "NOC logic" as a basement.
It seems to me, that I am to implement a solution with "aggregation and sorting inside of PHP scripts" to match user's expectations.
BTW: I think, it would be great to release a document with "NOC logic" description in git repo to prevent such questions in future. A simple "How to".
from homer-api.
sure, we will do it asap, please don't hesitate contact me in gtalk :-) we can also discuss there.
from homer-api.
Ok. See you there.
from homer-api.
Related Issues (20)
- Alarms config HOT 1
- Can't create alarm HOT 1
- Ipv6 calls are showing 0.0.0.0 ip when exported as pcap HOT 5
- Export search type uses current local time zone regardless of time zone selected in UI HOT 3
- Search uses "local" time instead of selected timezone if Export selected HOT 1
- click on Call-ID field does not display entire dialog if call started > 15 minutes before packet clicked HOT 3
- Wrong MOS calculation HOT 7
- incorrect content-length on json widget download (off by one) HOT 5
- Large INVITEs > 1500 bytes not being saved HOT 11
- homer_mysql_rotate fails. HOT 2
- NO msg field when retrieved call details using GET/POST http://localhost/api/v1/search/data HOT 1
- homer-api not connecting to the database HOT 3
- LDAP Authentication
- Homer 5 Install guide HOT 2
- Back-End homer-api for Java ? HOT 3
- unable to send json using statstrmr to homer api HOT 1
- does possible homer authenticat via microsoft active directory? HOT 2
- Duplicated records on homer 5 HOT 2
- homer_pgsql_rotate.pl no longer works HOT 7
- MySQL 8: function PASSWORD() removed. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homer-api.