kognitio-wx2


How to change the Queue Id in WX2?


Following is the current records from the QUEUES.
SELECT * FROM SYS.IPE_ALLQUEUES;
ID NAME
------- ----------
100004 NAGIOS
1 DEFAULT
100003 OTHER
100002 APP
100001 ANALYST
0 NONQUEUED
ID column is currently defined as INTEGER and we are planning to change this as SMALLINT. So I need to change the id's as follows
SELECT * FROM SYS.IPE_ALLQUEUES;
ID NAME
------- ----------
14 NAGIOS
1 DEFAULT
13 OTHER
12 APP
11 ANALYST
0 NONQUEUED
How can this be acheived in WX2?
Note: I am not asking about a simple update on the ids since this is a configuration meta data table for the WX2 engine. This is a bit intricate.
I don't think there is a way to specify the ids used in IPE_ALL_QUEUES, but there should be no benefit in them being SMALLINT rather than INT.
If you are storing a very large number of references to this table elsewhere, you could see a benefit from those references being of type SMALLINT (in terms of reduced storage requirement, particularly if the references are in a RAM-based object).
If so, you could add a layer of indirection which maps the SMALLINT (e.g. 14) to the required INT (e.g. 100004) - the indirection table would be replicated and tiny, and the cost of joining using it in addition to IPE_ALL_QUEUES and your large table with the SMALLINT would be negligible in terms of performance and RAM use.
CREATE TABLE largeref(qref SMALLINT, ...);
CREATE TABLE reflookup(qref SMALLINT, queue_id INT);
-- populate lookup with entries like (14, 100004)
-- populate largeref with SMALLINT references
-- replicate reflookup
SELECT Q.NAME, ...
FROM ipe_allqueues q, reflookup r, largeref l
WHERE q.id = r.queue_id
AND r.qref = l.qref
AND <other predicates on e.g. largeref>

Related Links

How to find resource intensive and time consuming queries in WX2?
How to change the Queue Id in WX2?
Different type of imaging techniques in kognitio
Issue in creating image for a simple view
What are different parameter used for wxloader?
Escape double quote Character in Kognitio

Categories

HOME
rust
mod-rewrite
apache-nifi
xcode
adfs3.0
workflow
code-formatting
biztalk
celery
consul
bittorrent
stack-overflow
driver
mailmerge
spring-jpa
dma
supervisord
spring-ldap
uislider
jpa-2.1
uilocalnotification
boolean-logic
progid
memory-fences
appcode
gsp
android-collapsingtoolbar
android-canvas
game-center
resampling
ejml
flipkart
access-denied
optionaldataexception
moinmoin
nuclio
rightnow-crm
sony-future-lab-n
uiautomatorviewer
patternlab.io
msxml
http4s
adobe-reader
finder
allegro
google-identity-toolkit
e
ndk-build
pyaudio
wolfram-language
qpixmap
apache-pig-grunt
highlighting
simian
enunciate
servicestack-bsd
bayesglm
google-maps-api-2
openshift-cartridge
asp.net-web-api-helppages
fantom
modern.ie
darwin
physicsjs
quercus
debug-symbols
fat32
string.format
encryption-symmetric
vs-unit-testing-framework
datagridcomboboxcolumn
utf8-decode
loginview
webmethod
otl
fileshare
miglayout
jmenubar
unrealscript
virtual-channel
flv
android-authenticator
2d-vector
cyrillic
gitx
uitextfielddelegate
n-queens
glx
fbml
mvcrecaptcha
cewolf
qcar-sdk
aptitude
multiple-users
3270
icon-language
server-load
levels

Resources

Encrypt Message