Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 09:52 AM
david@smooth1.co.uk
 
Posts: n/a
Default IDS New Feature Requests


I have started a document for IDS Feature Requests at

http://www.smooth1.co.uk/pages/smoot...com/IDS_FR.txt

Can people add to this? Please post (email address, date, request) to
this topic.

(Using Google Groups I cannot see peoples full email address!)

David.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 09:52 AM
david@smooth1.co.uk
 
Posts: n/a
Default Re: IDS New Feature Requests


PS IDS 10.00.UC4 has Truncate Table !!

http://publib.boulder.ibm.com/infoce...otes_10.0.html

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 09:52 AM
Guy Bowerman
 
Posts: n/a
Default Re: IDS New Feature Requests

IDS 10.0 also has:
"Be able to use raw devices in Linux (O_DIRECT when opening chunks)."

See:
http://www-128.ibm.com/developerwork.../dm-0503szabo/

david@smooth1.co.uk wrote:
> PS IDS 10.00.UC4 has Truncate Table !!
>
> http://publib.boulder.ibm.com/infoce...otes_10.0.html
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 09:52 AM
hariog@yahoo.com
 
Posts: n/a
Default Re: IDS New Feature Requests

Hi David,

Just a thought, pl. include in the list if ok:

Feature When
Whom

Do not drop views if parent table 14-12-2005
hariog@yahoo.com
has been dropped. Just invalidate
it. Also, command to validate and
list such views.

Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 09:53 AM
robsosno
 
Posts: n/a
Default Re: IDS New Feature Requests

david@smooth1.co.uk napisał(a):
> I have started a document for IDS Feature Requests at
>
> http://www.smooth1.co.uk/pages/smoot...com/IDS_FR.txt
>
> Can people add to this? Please post (email address, date, request) to
> this topic.
>
> (Using Google Groups I cannot see peoples full email address!)
>
> David.
>

There are few things which would be very useful for my Informix database.

1. Ability to have SPL procedures >64k
Not critical but it would be good to not be forced to split SPL
procedures.

2. Time based periodic fragmentation
This needs some explanation. I'll describe my particular case for
simplicity (I'm not very fluent in English) first.
Our database have millions of financial transactions. Each
transaction have its date. 'Transaction' table have 12 fragments each
holding transactions with the same month.
Such scheme is useful: processing current month transactions is
faster; also purging is faster - by simply detaching oldest fragment.

There is an issue with such fragmentation scheme: although "fragment
on month(transaction_date)" works there is no fragment elimination.
This is because fragment elimination is possible only for simple
expression. Simple expression cannot contain function, even if it is
built-in month function.

We are using simple workaround: there is special field containing
month. This field is used for fragmentation.

However it would be good to support such fragmentation scheme natively.
In more general case things are more complex: maybe somebody needs
bi-monthly fragments, or weekly fragments, or ... .
It seems that all such needs would be fulfilled if Informix would
support fragment elimination also for "simple function".
"Simple function" is a function taking one argument (transaction
date in my particular case) and returning integer value (number of the
month). Is this possible?
It would be something like this:
FRAGMENT BY EXPRESION SWITCH (month(tr_date), frag1, .. frag12)
or
FRAGMENT BY EXPRESION SWITCH (month(tr_date), frag1, .. frag12)
REMAINDER IN bad_frag

3. Tools for reclaiming disk space
There are some tables for which we have plenty of inserts and
deletes every day within one fragment. After some time it appears that
all pages in such a fragment are marked as used although often there is
only one short record in the page.
Such a case is very uncomfortable: our reports are alerting DBAs
that there is a danger of exhausting storage within the fragment because
nptotal (number of allocated pages) is approaching total number of pages
in the fragment (we are using a rule that less than 5% of free pages
generates alert).
This is not true because there are plenty of storage within already
allocated pages. However nobody knows how to measure remaining space.

Solution is to periodically reclaim unused storage space. There are
2 options:
- alter index to cluster;
- alter fragment .. init;
Unfortunately it is not easy to do that regularly: both methods
require much time with exclusive access to the table and much spare disk
space - for old and new location of the data. This is resource hungry
task - I often seen 'long transaction aborted' for larger tables.

Similar issue was with defragmenting filesystem. Earlier the only
possibility to defragment filesystem was:
- backup files (sometimes tar cvf was sufficient);
- delete files;
- restore files.
Backup on disk required as much space as used by the files in the old
disk location.
Later on disk defragmenters were discovered such as Disk Speed and others.

My proposal is to have such a tool for database defragmenting. It
would work using plenty of small transactions (transactions are
necessary - in case replication is used).
It could be dedicated SQL statement or command line tool+background
process.
Example SQL would be: ALTER INDEX i1 TO CLUSTER NOTRANSACTION
or ALTER INDEX i1 TO CLUSTER NOTRANSACTION COMMITEVERY 100 RECORDS

Such a statement is not quite transactional because interrupting it
causes that part of the job is already done.
It sounds like a heresy but is not: data content is not affected, only
physical disk placement. Also data integrity is ensured (data are moving
in small transactional batches).
If this is unacceptable in SQL then let it be command line tool
equivalent. There is already a case: dbload utility when interrupted
leaves table partially loaded.



Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 09:53 AM
Roger
 
Posts: n/a
Default Re: IDS New Feature Requests

robsosno napisał(a):
> david@smooth1.co.uk napisał(a):
>
>> I have started a document for IDS Feature Requests at
>>
>> http://www.smooth1.co.uk/pages/smoot...com/IDS_FR.txt
>>
>> Can people add to this? Please post (email address, date, request) to
>> this topic.
>>
>> (Using Google Groups I cannot see peoples full email address!)
>>
>> David.
>>

....
>
> 2. Time based periodic fragmentation
> Is this possible?

....
> It would be something like this:
> FRAGMENT BY EXPRESION SWITCH (month(tr_date), frag1, .. frag12)
> or
> FRAGMENT BY EXPRESION SWITCH (month(tr_date), frag1, .. frag12)
> REMAINDER IN bad_frag
>

I need to add some further explanation.
SQLs like these:
a) select * from transaction where tr_date>='1/1/2005' and
tr_date<='31/03/2005'
b) select * from transaction where tr_date>='1/1/2005' and
tr_date<='31/03/2006'

cannot use fragment elimination based on month. This is because query
a)is using frag1, frag2, frag3 while query b) usues all fragments
although month(tr_date) are the same.

I need fragment elimination for the query
c) select * from transaction where tr_date>='1/1/2005' and
tr_date<='31/03/2005' and month(tr_date)>=1 and month(tr_date)<=3
This can easily be done by a developer.

In theory there is no need to additional syntax for this. It is just
because fragmentation scheme could be re-written as:
FRAGMENT BY EXPRESSION month(tr_date=1) in frag1, month(tr_date) in
frag2, ...

In practice this is too complex for SQL parser. SWITCH syntax is only
for purposes to make it easier to discover that fragment can be eliminated.

Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2008, 09:53 AM
Serge Rielau
 
Posts: n/a
Default Re: IDS New Feature Requests

Roger wrote:
> robsosno napisał(a):
>
>> david@smooth1.co.uk napisał(a):
>>
>>> I have started a document for IDS Feature Requests at
>>>
>>> http://www.smooth1.co.uk/pages/smoot...com/IDS_FR.txt
>>>
>>> Can people add to this? Please post (email address, date, request) to
>>> this topic.
>>>
>>> (Using Google Groups I cannot see peoples full email address!)
>>>
>>> David.
>>>

> ...
>
>>
>> 2. Time based periodic fragmentation
>> Is this possible?

>
> ...
>
>> It would be something like this:
>> FRAGMENT BY EXPRESION SWITCH (month(tr_date), frag1, .. frag12)
>> or
>> FRAGMENT BY EXPRESION SWITCH (month(tr_date), frag1, .. frag12)
>> REMAINDER IN bad_frag
>>

> I need to add some further explanation.
> SQLs like these:
> a) select * from transaction where tr_date>='1/1/2005' and
> tr_date<='31/03/2005'
> b) select * from transaction where tr_date>='1/1/2005' and
> tr_date<='31/03/2006'
>
> cannot use fragment elimination based on month. This is because query
> a)is using frag1, frag2, frag3 while query b) usues all fragments
> although month(tr_date) are the same.
>
> I need fragment elimination for the query
> c) select * from transaction where tr_date>='1/1/2005' and
> tr_date<='31/03/2005' and month(tr_date)>=1 and month(tr_date)<=3
> This can easily be done by a developer.
>
> In theory there is no need to additional syntax for this. It is just
> because fragmentation scheme could be re-written as:
> FRAGMENT BY EXPRESSION month(tr_date=1) in frag1, month(tr_date) in
> frag2, ...
>
> In practice this is too complex for SQL parser. SWITCH syntax is only
> for purposes to make it easier to discover that fragment can be eliminated.

Actually month() would be pretty tough because it's not monotonic.
Given fragments of year_to_months snipping of the days preserves
monotonicity and can hence be discovered by the system.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-20-2008, 09:54 AM
Richard Harnden
 
Posts: n/a
Default Re: IDS New Feature Requests

david@smooth1.co.uk wrote:
> I have started a document for IDS Feature Requests at
>
> http://www.smooth1.co.uk/pages/smoot...com/IDS_FR.txt
>
> Can people add to this? Please post (email address, date, request) to
> this topic.
>
> (Using Google Groups I cannot see peoples full email address!)
>
> David.
>


I'd like to see the "WITH ... AS" clause for inline views.

Built-in functions such as UPPER could be made invariant, for functional
indices.

--
rh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-20-2008, 09:54 AM
david@smooth1.co.uk
 
Posts: n/a
Default Re: IDS New Feature Requests

Added.

Folks,

I still can't see peoples full email addresses in this crappy google
groups.

I want to present this list to IBM but I can't without proper email
addresss (and preferably
company names).

If we want this to be taken seriously I'm going to need help here!

I can't say "Richard Harnden <richard.harn...@lineone.net>" asked for
this as IBM will
say who? How can I contact them?

Sorry to pick on the person I am replying to here but this also applied
to

E.g.
Fernando Ortiz <for...@lacorona.com.mx>
robsosno <robso...@gmail.com>
DL Redden <redde...@yahoo.com>
"Andrew Ford" <andrewf...@austin.rr.com>
"Redden96" <Redde...@yahoo.com> (same as above??).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-20-2008, 09:54 AM
Richard Harnden
 
Posts: n/a
Default Re: IDS New Feature Requests

david@smooth1.co.uk wrote:
> Added.
>
> Folks,
>
> I still can't see peoples full email addresses in this crappy google
> groups.


Then use a proper news-reader to read usenet.

Unless, that is, your PHB is scared that you'll immediatly subscribe to
alt.binaries.obnoxio

--
rh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633