HELP. TYING TO MAKE SENSE OF A SCHEDULE

Hi im creating a following tournement schedule and the following code is used to generate fizxtures. However i am unsure as to how this happens and what each line actually does. I have commented each line could someone please advise if this is correct and when i try to create the matchups, how does this whole procedure work. For example, when it gets to i=3 and j=2 when 4 teams are participating, then the fixture gets generated 2 vs 5th team which cannot happen. i do not understand how this accompanies it. Thank you ever so much
bye at -1 means team has no bye
public void League()
          int TotalParticipants= List.size(), NoOfGames = TotalParticipants*(TotalParticipants-1)/2, tmp;
          bye = -1;
          game = new int[NoOfGames][3];
          Team tmpTeam; //tmpteam stores team
     for(int i = 1; i < TotalParticipants; i++)
          for(int j = 0; j < TotalParticipants-i; j++) //for j=1, 0<no of teams-1,I+1..
                    tmp = (i-1)*TotalParticipants-i*(i-1)/2+j; //tmp value
                    if( (tmp/5 +1) % 2 == 1)
                         tmpTeam = ((Team)List.get(j)); //tmpteam = teamlist get team j
                         tmpTeam.setHomeGames(tmpTeam.getHome()+1);  //tmpteam calls homegames method and adds one
                         game[tmp][0] = tmpTeam.getNum(); //gets number of team
                         tmpTeam = ((Team)List.get(j+i)); //tmpteam = teamlist get team j+i
                         tmpTeam.setAwayGames(tmpTeam.getAway()+1); //tmpteam calls awaygames method and adds one
                         game[tmp][1] = ((Team)List.get(j+i)).getNum(); //gets number of team
                    else
                         tmpTeam = ((Team)List.get(j+i)); //tmpteam = teamlist get team j+i
                         tmpTeam.setHomeGames(tmpTeam.getHome()+1); //tmpteam calls homegames method and adds one
                         game[tmp][0] = tmpTeam.getNum(); //gets number of team
                         tmpTeam = ((Team)List.get(j)); //tmpteam = teamlist get team j
                         tmpTeam.setAwayGames(tmpTeam.getAway()+1); //tmpteam calls awaygames method and adds one
                         game[tmp][1] = ((Team)List.get(j)).getNum(); //gets number of team                    
                    game[tmp][2] = -1; //sets bye
     }

Ok Thank you mate, Firstly, this generates the games in a league format, who plays who.
With this algorithm, everyone will play each other only once. I have commented each line out to try and make sense
So for example if 3 teams were entered.
totalparticipants would = 3
noofgames= 3
so as i = 1, i<3
j=0 j<2
this now runs creating 2 fixtures
0vs1
1vs2
i increases by 1
i=2 i<3
j=0 j<2
now surely the last 2 fixtues would be created, but this would not make sense as it would generate
4 games and one of these would be wrong
it would get
0vs2
1vs3 .... which is wrong. sorry if its confusing :S
How does this system accompany this.does
it just miss out the value. and for team entrants with 5 in size, there are repeat games. It misses these 2.
and why use these forumulaes. is it some scheduling algorithm. couldnt find info on it anywhere
tmp = (i-1)*TotalParticipants-i*(i-1)/2+j; //tmp value
if( (tmp/5 +1) % 2 == 1)

Similar Messages

  • Help.  Does use of .txt file make sense or code directly into an ArrayList

    I am writing my first program and I want to put a series of information in various .txt files. This is because I will have a lot of different objects that I will create that will needed to be iterated over (most of the objects are similar in many ways). It seemed to me that a .txt file would be better than writing the items directly in an arraylist (if you know what i mean). What do you think?
    There will be 7 different objects that will be iterated over (and there will be 12 other objects doing other things as well, they will not be in .txt format), and I thought instead of having to maintain it through the actual code, I would just have .txt files that I create in notepad or something so that when I need to make changes to one of the 7 objects I only have to get the .txt file instead of having to wade through the code to find that object.
    Does this make sense?
    It seems that I will now have to do a lot of I / O to make it work, so now I am thinking maybe it is better to simply use the arrylist. Is there a benefit of one over the other in this circumstance?
    Also one of the objects has jpeg files that will need to be iterated over. Actually for these I will put them in an array list, because I can't seem to figure out yet how to get an image and the information about the image to display within I/O (like CD covers and their titles).
    Thank you for any help and suggestions I feel a little overwhelmed, but hopeful, with you kind folks.
    Peace
    NB I know that I am not using the correct terminology, but I hope that you can understand what I mean.
    Message was edited by:
    peacerosetx

    I am writing my first program and I want to put a
    series of information in various .txt files. Thisis
    because I will have a lot of different objects thatI
    will create that will needed to be iterated over
    (most of the objects are similar in many ways). It
    seemed to me that a .txt file would be better than
    writing the items directly in an arraylist (if you
    know what i mean). What do you think? I think I do not know what you mean. I also think
    that ArrayLists and files shouldn't replace eachI am going to use an ArrayList. Merci
    other.
    There will be 7 different objects that will be
    iterated over (and there will be 12 other objects
    doing other things as well, they will not be in.txt
    format),Seven objects? Twelve objects? Huh? Why not use
    arrays? And how do you get an object into a text
    file?
    and I thought instead of having to maintain
    it through the actual code, I would just have .txt
    files that I create in notepad or something sothat
    when I need to make changes to one of the 7 objectsI
    only have to get the .txt file instead of havingto
    wade through the code to find that object.
    Does this make sense? Your description? Not to me.
    It seems that I will now have to do a lot of I / Oto
    make it work, so now I am thinking maybe it isbetter
    to simply use the arrylist. Is there a benefit of
    one over the other in this circumstance? Uh, ArrayList is way faster and much easier
    modifyable.
    Also one of the objects has jpeg files that willneed
    to be iterated over. Actually for these I will put
    them in an array list, because I can't seem tofigure
    out yet how to get an image and the informationabout
    the image to display within I/O (like CD coversand
    their titles). "Display within I/O"? This makes no sense.
    NB I know that I am not using the correct
    terminology, but I hope that you can understandwhat
    I mean.If you're not using the correct terminology, there's
    no chance for us to understand you. If you say
    "objects" but mean "classes", then say classes.

  • Hi, im tinkering with mpeg streamclip and its giving me problems because it won't open my ripped dvd files from my desktop. It keeps giving me the same message "no VOB files can be found". Can anyone help me, this doesn't make sense.

    hi, im tinkering with mpeg streamclip and its giving me problems because it won't open my ripped dvd files from my desktop. It keeps giving me the same message "no VOB files can be found". Can anyone help me, this doesn't make sense. I also found online that you need Apple Mpeg-2 playback component in order to use mpeg streamclip. Even though I have OS X Lion, should I download the add-on?

    You need to convert the VOB files in the TS-Folder of the DVD back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    which is free, but you must also have the  Apple mpeg2 plugin :
    http://www.apple.com/quicktime/mpeg2/
    (unless you are running Lion in which case see below))
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    For the benefit of others who may read this thread:
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.
    And from the TOU of these forums:
    Keep within the Law
    No material may be submitted that is intended to promote or commit an illegal act.
    Do not submit software or descriptions of processes that break or otherwise ‘work around’ digital rights management software or hardware. This includes conversations about ‘ripping’ DVDs or working around FairPlay software used on the iTunes Store.
    If you are running Lion:
    From the MPEG Streamclip homepage
    The installer of the MPEG-2 Playback Component may refuse to install the component in Lion. Apple states the component is unnecessary in Lion, however MPEG Streamclip still needs it.
    To install the component in Lion, please download MPEG Streamclip 1.9.3b7 beta above; inside the disk image you will find the Utility MPEG2 Component Lion: use it to install the MPEG-2 Playback Component in Lion. The original installer's disk image (QuickTimeMPEG2.dmg) is required.
    The current versions of MPEG Streamclip cannot take advantage of the built-in MPEG-2 functionality of Lion. For MPEG-2 files you still need to install the QuickTime MPEG-2 Playback Component, which is not preinstalled in Lion. You don't have to install QuickTime 7.

  • System Overload problem, Cant make sense of help I've been given

    Hey guys, I picked up a cheap version of Logic through my school just over two years ago. I've always used its most simplistic functions for making rough recordings of my band, but over the last 6 months I've been getting into production a lot more. As I got more into using MIDI and Plugins, my system overload problem got worse and worse. Its now at the point where I get an overload literally every two bars of music. Through this support page http://support.apple.com/kb/HT3161 I worked out my problem is that one core of my processor is having to do literally everything.
    My knowledge of logics functions is not indepth in the slightest, and I absolutely cannot make sense of the instructions on this page. I dont have an Output 1-2 track, or an Aux 1 / Aux 2 track in my mixer. Moreover I just can't work out what this page is trying to tell me to do to balance the activity between cores.
    If anyone could break the process down into a really simple, laymans terms step by step of what I do, I'd be extremely greatful. Sorry to sound dense but I really have no clue what that support page is telling me to do ha
    Cheers!
    PS running on a 2.4Ghz Core 2 Duo, 2GB RAM, plenty of Hard Disk space free.

    It'll make a bit more sense when you realise that the aux tracks will apear automatically in the mix window once you send something to an aux via a channel.

  • GW2012 move: Does it make sense to move users to a new PO?

    Moving from GW8 on OES-NW to GW2012 on OES11: Does it make sense to create new post office and move users?
    We have a medium size GroupWise 8 system with a single post office holding less than 600 user accounts, 128 resources and 77 distribution lists.
    Due to politics we also have a non-GroupWise external domain that contains a non-GroupWise external post office with a large number of "users".
    The post office is on the primary domain.
    3 secondary domains hold a GWIA and two web access agents.
    I've never been real clear where the external stuff exists...
    One of the web access gateways resides on an OES11 server.
    The other webaccess agent and the GWIA are on OES-NW servers.
    All reside in NSS volumes.
    Given the lack support for NSS volumes on Linux servers by most backup applications (including mine), I've pretty much determined that it makes sense to move my GW system to EXT3 volumes.
    Even if I change backup software and stick with NSS, and even though all my data is stored on SAN arrays, from what I've read on the forums and from Danita's books, it's preferable to copy your GW system files to a new NSS volume, as opposed to just re-attaching the OES-NW LUN to the new OES11 server.
    Point being, whatever I do will involve copying the entire system via dbcopy and at some point, will also involve shutting down the existing domain and PO for the last phase of the copying process.
    So..., I'm contemplating the following scenario:
    Create a new OES11 server with EXT3 volumes sufficient for holding my GroupWise system.
    Create new GroupWise 8 domain on the server.
    Promote the new domain to primary and upgrade this new domain to GroupWise 2012.
    Once the new domain is upgraded, create new GW2012 post office on new server/primary domain and migrate the users, resources and distribution lists to the new post office.
    In the past I've had an additional post office and had migrated a about 20-25 users to that post office.
    It wasn't a terrible process, and fortunately, I didn't run into any problems with the migration of those users.
    When I re-consolidated my system, moving them back was also problem free
    On the pro side:
    No downtime of entire system
    Relatively simple
    Any issues in the migration process would be user-specific and would not effect the entire system.
    On the con side:
    Process could take far longer, since you can't move a lot of users simultaneously.
    In addition, we have a small group of users with anywhere from 40,000 to 80,000 email in their account, so I'd have to factor that into haw many users I migrate at one time.
    The chance of running into a stalled migration, for whatever reason, is probably much higher than running into a problem with moving the domain and PO via dbcopy.
    The unknown factors for me and my level of experience:
    It's been a while since I've had multiple post offices, so I don't recall what changes the users might see with regard to distribution lists, web access or external email.

    Originally Posted by gathagan
    Moving from GW8 on OES-NW to GW2012 on OES11: Does it make sense to create new post office and move users?
    Is there any reason you think that warrants to do so?
    If the system is performing normally I'd opt to stick to upgrading the current setup as is.
    I'm also curious, are you intending to upgrade to 2014 after the 2012 upgrade?
    Originally Posted by gathagan
    The post office is on the primary domain.
    3 secondary domains hold a GWIA and two web access agents.
    I've never been real clear where the external stuff exists...
    Ok, that setup makes the upgrade easier. As you will start the upgrade with the primary holding the PO's... the PO's can be upgraded right after or during the domain upgrade (depending on if the MTA and POA are running on the same server).
    That means you don't have to think about upgraded webaccess/GWIA connectivity issues with a lower PO version.
    The external stuff are simply configurations found in the existing GroupWise domain databases. Or do you mean where those connected systems actually run?
    Originally Posted by gathagan
    One of the web access gateways resides on an OES11 server.
    The other webaccess agent and the GWIA are on OES-NW servers.
    All reside in NSS volumes.
    And the primary Domain and PO are also still on NetWare (version 6.5 SP8 I presume), correct?
    Originally Posted by gathagan
    Given the lack support for NSS volumes on Linux servers by most backup applications (including mine), I've pretty much determined that it makes sense to move my GW system to EXT3 volumes.
    Which backup application is that? With GroupWise op Linux not much NSS support is needed IMO.... as long as the files get backed up properly other metadata (rights, ownerships, etc) is irrelevant.
    As for EXT3 vs NSS, when dealing with OES I always choose NSS. But that's me.
    Another option could be to use XFS instead of ext3. That does perform much better, but has to be noted that it is more prone to file corruption in unexpected power loss situations.
    With ext3, watch out for the scheduled filesystem check cycles at boot, that is one thing I really dislike about ext3 as disabling that check completely is not recommended and it means at least once a year the system will take an extensive amount of time to complete a (re)boot due to the check running on the ext3 filesystem. That usually pops up on you when you are not counting on it and "just quickly" want to reboot the server in a patching routine or other.
    Originally Posted by gathagan
    Even if I change backup software and stick with NSS, and even though all my data is stored on SAN arrays, from what I've read on the forums and from Danita's books, it's preferable to copy your GW system files to a new NSS volume, as opposed to just re-attaching the OES-NW LUN to the new OES11 server.
    Yes, it's always good if you can start with a clean volume when transitioning from NetWare to OES.
    Depending on how long you can afford to have the system down during upgrade, you can also choose the route of moving the NetWare LUN to the new OES server. Adding a second new LUN to the OES server with the needed size and initializing it with a new NSS volume and then just simply do a volume to volume copy using the cp of rsync command. As it's on the same server that can go quite quickly within an acceptable maintenance window to complete all move/upgrade steps.
    Originally Posted by gathagan
    Point being, whatever I do will involve copying the entire system via dbcopy and at some point, will also involve shutting down the existing domain and PO for the last phase of the copying process.
    Sure, though you don't necessarily have to use dbcopy... depending on what you are planning to do. An offline copy won't require it for example.
    How much data are we talking about (in GB's)?
    Originally Posted by gathagan
    So..., I'm contemplating the following scenario:
    Create a new OES11 server with EXT3 volumes sufficient for holding my GroupWise system.
    Create new GroupWise 8 domain on the server.
    Promote the new domain to primary and upgrade this new domain to GroupWise 2012.
    Once the new domain is upgraded, create new GW2012 post office on new server/primary domain and migrate the users, resources and distribution lists to the new post office.
    If you really want to move users.... sure. I'd again opt for upgrading the existing system.
    Also, it's a good rule to have the PO's running the same GroupWise version and patchlevel before commencing user moves. Moves between PO's with a different GroupWise version can lead to issues.
    Originally Posted by gathagan
    In the past I've had an additional post office and had migrated a about 20-25 users to that post office.
    It wasn't a terrible process, and fortunately, I didn't run into any problems with the migration of those users.
    When I re-consolidated my system, moving them back was also problem free
    If you would want to move users, for whatever reason, I'd opt to first upgrade to the latest version first, then move. There have been many enhancements and bugfixes made in the move procedure over these last couple of years.
    Originally Posted by gathagan
    On the pro side:
    No downtime of entire system
    Relatively simple
    Any issues in the migration process would be user-specific and would not effect the entire system.
    On the con side:
    Process could take far longer, since you can't move a lot of users simultaneously.
    In addition, we have a small group of users with anywhere from 40,000 to 80,000 email in their account, so I'd have to factor that into haw many users I migrate at one time.
    The chance of running into a stalled migration, for whatever reason, is probably much higher than running into a problem with moving the domain and PO via dbcopy.
    I prefer a system upgrade over moving users. The process of moving when dealing with 100+ users, requires more effort and there are always things that need attention for a portion of the users. Also things like mobile devices can require some extra attention after having moved an account for example.
    True, problems during a system upgrade can potentially affect all users. That is a factor. From the many upgrades I've done that's rarely really been an issue and problems encountered during an upgrade did not cause too much delay. Just make sure you always have a good full backup handy so you can reverse the upgrade if ever needed.
    Originally Posted by gathagan
    The unknown factors for me and my level of experience:
    It's been a while since I've had multiple post offices, so I don't recall what changes the users might see with regard to distribution lists, web access or external email.
    If by this you are referring to user moves and address book visibility between PO's, that should not be different to what users are seeing now. At least, the default is that within a GroupWise system all is visible throughout the system. If you have specifically set GroupWise objects to Postoffice visibility... then that would be something to check.
    Cheers,
    Willem

  • Trying to make sense of AS2 gradient fill matrices

    This one will likely interest kglad, but I'm all ears for
    insight from
    anyone who digs math.
    I've been working with gradient fills lately in AS2, which
    means I've
    been reading through related entries in the ActionScript 2.0
    Language
    Reference. Here's a quick example right out of the docs
    (slightly revised
    to boil it down to the essentials). The Drawing API draws a
    square and
    fills it with a linear gradient that goes from red (upper
    left) to blue
    (lower right).
    this.createEmptyMovieClip("gradient_mc",this.getNextHighestDepth());
    with (gradient_mc) {
    colors = [0xFF0000, 0x0000FF];
    fillType = "linear";
    alphas = [100, 100];
    ratios = [0, 0xFF];
    matrix = {matrixType:"box", x:100, y:100, w:200, h:200,
    r:(45/180)*Math.PI};
    beginGradientFill(fillType,colors,alphas,ratios,matrix);
    moveTo(100,100);
    lineTo(100,300);
    lineTo(300,300);
    lineTo(300,100);
    lineTo(100,100);
    endFill();
    The point of interest, to me, is that generic Object
    instance, matrix,
    with properies x, y, w, h, r, and matrixType. The x and y are
    for position
    and correspond to the moveTo(100,100) call. The w and h
    represent width and
    height. The r is rotation in radians. The matrixType is
    arbitrary (I
    guess), because the same matrix can be used for a radial
    gradient -- never
    mind that for now.
    The properties shown, arbitrary or not, are the ones
    demonstrated in the
    docs. That snippet does draw a 45deg red to blue gradient.
    The docs recommend a slightly different approach for Flash
    Payer 8 and
    higher; namely, the native Matrix class. Everything in the
    above sample
    remains except that the existing matrix line changes to these
    two lines:
    matrix = new Matrix();
    matrix.createGradientBox(200, 200, (45/180)*Math.PI, 100,
    100);
    Pretty obvious to see where they overlap. The matrixType
    property is
    gone, but hey ... everything works, so I'm not going to go
    looking for
    trouble.
    Here's the punch line. The docs *also* show an alternative
    Object
    approach, one in which the properties describe a 3x3 matrix
    whose properties
    are a, b, c, d, e, f, g, h, and i. After toying with this
    a-through-i
    example, I noticed a pattern in the values: c, f, and i are
    0, 0, and 1
    respectively. That seems to correspond to the conventional
    graphics matrix
    a b u
    c d v
    tx ty w
    ... where u, v, and x are 0, 0, and 1. Seems fairly clear
    that tx and ty
    would correspond to x and y. After tracing the properties of
    the matrix
    variable (after the createGradientBox() call) it seemed
    reasonable to me to
    make the following mapping:
    a:a b:b c:0
    d:c e:d f:0
    g:tx g:ty i:1
    ... which led me to replace the original matrix declaration
    with this (back
    to a single line):
    matrix = {
    a:0.086316745750311,
    b:0.086316745750311,
    c:0,
    d:-0.086316745750311,
    e:0.086316745750311,
    f:0,
    g:200,
    h:200,
    i:1
    Those values, by the way, come from my tracing the
    properties of this
    matrix.createGradientBox(200, 200, (45/180)*Math.PI, 100,
    100);
    The weird part is, that still gives a 45deg angled gradient,
    but it's
    super-heavily banded. Not really a gradient at all, but more
    like four
    colored stripes -- red, blue, red, blue -- from upper left to
    lower right.
    Can anyone explain to me why?
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

    GWD,
    > I couldn't leave it alone. I came back to it.
    Ha! I know that feeling. :)
    > matrix = { a:200, b:-100, c:0, d:-100, e:200, f:0,
    g:200, h:200, i:1 };
    >
    > gets close, but its still not quite right. I think the
    difference here is
    > that skew is expressed differently.
    That makes sense. And yes, that comes pretty close.
    > I found a better explanation here:
    >
    http://www.flashdevils.com/tutorials.php?id=142
    Thanks, GWD! That helps a lot.
    > [I would be inclined to use the other approaches if I
    could get
    > away with it.]
    Yeah, I definitely agree. I find it odd that the docs even
    mention it,
    but since they do, I found myself elbow deep in wondering
    why. Thanks for
    input!
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • I'm tying to make a payment for photoshop but the fields on the payment form won't allow me to enter the correct card information.  Im based in Japan but my card is registered to a UK address.  the fields only allow for a Japanese style address and postco

    I'm tying to make a payment for photoshop but the fields on the payment form won't allow me to enter the correct card information.  Im based in Japan but my card is registered to a UK address.  the fields only allow for a Japanese style address and postcode.  What can i do to complete the payment and get photoshop!

    As far as I know, your registered location and your credit card information must match... but,
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Trying to make sense of div tags and css

    i know that i am a few years late here, but i am looking ot make the migration from using tables and switching over to div tags and css. i have watched a few tutorials on you tube and am trying to understand everything.
    please tell me if this is correct.  a div tag is basically a table and css is what is used to style that div tag to meet your needs, is this a correct assumption??
    if you go to my current site www.tankinz.com you can clearly see that the site is made up of tables, basically these boxes or tables contain a different item or package that a customer can click on and buy.  by using div tags and css would each of these boxes, or tables be their own div?
    sorry for sounding a bit moronic but i am trying to make sense of all of this.
    please help!

    Markup (html) contains elements, such as html, body, h1, h2, p, span, div and so forth. Hence a <div>-tag is part of an element; the other part being the </div>-tag.
    The element structure of many web sites is basically (using HTML5 element names)
    html
         head
         body
              header
              nav
              aside
              article
              footer
    These elements can be positioned and styled using style rules (css). Depending on the style rules, the above structure can take on many different styles, without ever touching the markup.
    Have a look here for a simple two-column layout using the same structure as above http://www.456bereastreet.com/lab/developing_with_web_standards/csslayout/2-col/

  • Using massive as plug-in and my xio synth  hope this makes sense?

    Ok I recorded a sound from my xio synth onto a track. after that I opened a new track under the one I just recored on. on the new track I wanted to use my xio as a midi control for my plug-in called massive. Now the sound on the first track I recorded switched to the sound I was trying to use for my plug-in I hope this makes sense?

    Nope, does not make too much sense...but I'll take a crack at it.
    1. Track 1, is it MIDI? Yes....well probably. I can't see your screen, so I will ***-ume it is.
    2.Track 2, is it MIDI? Yes...again with the ***-umption.
    You need to make SURE track 2 in the arrange page is ACTUALLY Midi track 2. Right now I think you have two "Midi track 1" on the arrange page. ie you have two trakcs which are referencing the same Midi channel.
    In Logic when you create a new track in the arrange page, you have three options:
    1. make a new track with the NEXT instrument.
    2. make a new track that is the SAME instrument.
    3. and from the menu, you can choos what type of track to create as well.
    I hope this helps,
    Cheers

  • Does it makes sense to create an index on a column used for partitioning

    I am new to using partitions along with index. Can someone help me with the situation below?
    I have a table defined like below
    CREATE TABLE FACT_MASTER
    PERIODCODE NUMBER(8) NOT NULL,
    PRODUCT_CD NUMBER(10) NOT NULL,
    DPT_CD NUMBER(3),
    FACT_VALUE1 NUMBER,
    FACT_VALUE2 NUMBER,
    FACT_VALUE3 NUMBER,
    FACT_VALUE50 NUMBER
    PARTITION BY RANGE (PERIODCODE)
    partition P1 values less than (2002),
    partition P2 values less than (2003),
    partition P3 values less than (2004),
    This table is partitioned by range on Period code.
    In a select query on this table, period code and product code are being used. I am planning to create an index to boost the performance. Does it make sense to include the period code column also in the index? I am planning to create index only for the product code column. I am thinking that the partition itself will act like an index for periodcode. Can someone tell me if this is correct? I am using 10g.
    Edited by: user6794035 on Jan 21, 2010 8:47 AM
    Edited by: user6794035 on Jan 21, 2010 8:50 AM

    In your scenario I think it's better not to create an index on PERIODCODE because this column probaly has a only few distinct values.
    In other scenarios, when in the same partition there are many distinct values of the partitioning key, creating an index can be an advantage for query performances..
    But it depends on the specific context...
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/]

  • When does proactive caching make sense?

    Hi all!
    An standard pattern for multi-dimensional cube is to have
    one cube doing heavy time-consuming processing and then synchronize it to query cubes.
    In this setup, will pro-active caching makes sense?
    Best regards
    Bjørn
    B. D. Jensen

    Hello Jensen,
    Proactive Cache is useful low volume data cubes where data is updating frequently like inventory, forecasting etc. But I will tell you with my own experience Proactive cache in SSAS is not worth. It behaves unexpectedly some times when data update/insert/Delete
    in source table the cube doesn't start its processing ,  better you create a SQL Job to process the cube after specified time .
    If you want to process the cube in specified interval then I would suggest you to go with SQL JOB
    blog:My Blog/
    Hope this will help you !!!
    Sanjeewan

  • Does it make sense to create a worker role for data access to DocumentDB?

    Hi,
    I'm building an ASP.NET MVC app that will run on Azure. I'm using DocumentDB as its back-end database.
    Sometimes, I return multiple data sets from different collections that need to be "reorganized". I handle this using LINQ in my application code. Does it make sense then to put all my data access and manipulation code into a worker role that I
    can call from my web application that will run as a web role?
    The reason why I'm thinking this may be beneficial is that I could scale up my worker role to increase its data manipulation capacity.
    On the other hand, in most cases, my web role has to wait for a response from the DAL before it can do anything -- meaning, I cannot handle data access asynchronously -- I'm wondering if worker role approach makes any sense. I think mostly, worker roles
    are used for operations that can run asynchronously.
    I'd appreciate your feedback on this.
    Thanks, Sam

    Hi,
    Worker role applications are background processing applications like Windows processes which run in the background. Applications hosted within worker roles can run asynchronous, we usually use worker role to do some long-running or perpetual tasks, and
    use scale function to load balance the tasks. Based on your description, it seems that worker role is a good choice for you, please try it, if you have further issues, welcome to create new threads in our forum.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 8i+WebDB HELP:How to make longer fields for "News items"

    8i+WebDB
    How do I create longer fields for my "News items"?
    If I try to publish long sized News I receive an Error:
    "Ora-02005: Implisit(-1) Length not valid for this bind or define
    data type". I HAVE chosen "long field" settings in the DB
    (8.1.5.0.0)
    Are there any parameter settings in WebDB to allow longer
    fields??
    PLEASE HELP!!
    null

    Hi, Lu:
    If I understand your question correctly, you want to modify the FSG of recociliation account of Vendor/Customer to make sure Cost Center/WBS field display in transaction F-22/F-43 for example, right?
    I am not sure whether it is possible, I also tried in ECC6.0 but failed to show these two fields. And I think that doesn't make sense to assign CO object to AP/AR reconciliation account, but assign it to Revenue/Expense account in following line items.
    And You can use New General Ledger functionality Document Splitting to derive corresponding CO object information to Reconciliation Account line item, but it is enabled only in General Ledger level, not in subledger level.
    If you find any other meaningful solution, please also share with us.
    Thanks & BR, Lawrence

  • PCK without backend connection makes sense?

    Hi folks,
    I’m preparing to start a new project with a scenario like this:
    Web services <-> XI <-internet-> PCK (R/3 out of our landscape)
    Initially, the aim of this project it was only to do the developments between web services and XI, the other part (XI <-> PCK+R/3) is intended to be done after by a customer consultant. The reason is because we don’t know which entities will adhere to our B2B scenario; in the future every entity will speak with our XI.
    But now the things changed a little bit, my customer wants a PCK without R/3 connection only for tests proposes. I never worked with PCK and I don’t know if it makes sense a PCK without a backend system.
    Can I emulate an import of RFCs structures to test my scenario? Or either, the PCK has any “test message” like XI has in RWB?
    Thanks in advance,
    Ricardo.
    Message was edited by:
            Ricardo  Quintino

    Two more things:
    PCK supports IDoc? I guess not because is a J2EE standalone and no ABAP satck is available.
    Can I use rooting rules (Xpath) like we do with XI Receiver Determination?
    Once again, thanks for the help
    Ricardo.

  • Color Space and Bit Depth - What Makes Sense?

    I'm constantly confused about which color space and bit depth to choose for various things.
    Examples:
    - Does it make any sense to choose sRGB and 16-bits? (I thought sRGB was 8-bit by nature, no?)
    - Likewise for AdobeRGB - are the upper 8-bits empty if you use 16-bits?
    - What is the relationship between Nikon AdobeWide RGB, and AdobeRGB? - if a software supports one, will it support the other?
    - ProPhoto/8-bits - is there ever a reason?...
    I could go on, but I think you get the idea...
    Any help?
    Rob

    So, it does not really make sense to use ProPhoto/8 for output (or for anything else I guess(?)), even if its supported, since it is optimized for an extended gamut, and if your output device does not encompass the gamut, then you've lost something since your bits will be spread thinner in the "most important" colors.
    Correct, you do not want to do prophotoRGB 8bit anything. It is very easy to get posterization with it. Coincidentally, if you print from Lightroom and let the driver manage and do not check 16-bit output, Lightroom outputs prophotoRGB 8bits to the driver. This is rather annoying as it is very easy to get posterizaed prints this way.
    It seems that AdobeRGB has been optimized more for "important" colors and so if you have to scrunch down into an 8-bit jpeg, then its the best choice if supported - same would hold true for an 8-bit tif I would think (?)
    Correct on both counts. If there is color management and you go 8 bits adobeRGB is a good choice. This is only really true for print targets though as adobeRGB encompasses more of a typical CMYK gamut than sRGB. For display targets such as the web you will be better off always using sRGB as 99% of displays are closer to that and so you don't gain anything. Also, 80% of web browsers is still not color managed.
    On a theoretical note: I still don't understand why if image data is 12 or 14 bits and the image format uses 16 bits, why there has to be a boundary drawn around the gamut representation. But for practical purposes, maybe it doesn't really matter.
    Do realitze hat the original image in 12 to 14 bits is in linear gamma as that is how the sensor reacts to light. However formats for display are always gamma corrected for efficiency, because the human eye reacts non-linearly to light and because typical displays have a gamma powerlaw response of brightness/darkness. Lightroom internally uses a 16-bit linear space. This is more bits than the 12 or 14 bits simply to avoid aliasing errors and other numeric errors. Similarly the working space is chosen larger than the gamut cameras can capture in order to have some overhead that allows for flexibility and avoids blowing out in intermediary stages of the processing pipeline. You have to choose something and so prophotoRGB, one of the widest RGB spaces out there is used. This is explained quite well here.
    - Is there any reason not to standardize 8-bit tif or jpg files on AdobeRGB and leave sRGB for the rare cases when legacy support is more important than color integrity?
    Actually legacy issues are rampant. Even now, color management is very spotty, even in shops oriented towards professionals. Also, arguably the largest destination for digital file output, the web, is almost not color managed. sRGB remains king unfortunately. It could be so much better if everybody used Safari or Firefox, but that clearly is not the case yet.
    - And standardize 16 bit formats on the widest gamut supported by whatever you're doing with it? - ProPhoto for editing, and maybe whatever gamut is recommended by other software or hardware vendors for special purposes...
    Yes, if you go 16 bits, there is no point not doing prophotoRGB.
    Personally, all my web photos are presented through Flash, which supports AdobeRGB even if the browser proper does not. So I don't have legacy browsers to worry about myself.
    Flash only supports non-sRGB images if you have enabled it yourself. NONE of the included flash templates in Lightroom for example enable it.
    that IE was the last browser to be upgraded for colorspace support (ie9)
    AFAIK (I don't do windows, so I have not tested IE9 myself), IE 9 still is not color managed. The only thing it does is when it encounters a jpeg with a ICC profile different than sRGB is translate it to sRGB and send that to the monitor without using the monitor profile. That is not color management at all. It is rather useless and completely contrary to what Microsoft themselves said many years ago well behaved browsers should do. It is also contrary to all of Windows 7 included utilities for image display. Really weird! Wide gamut displays are becoming more and more prevalent and this is backwards. Even if IE9 does this halfassed color transform, you can still not standardize on adobeRGB as it will take years for IE versions to really switch over. Many people still use IE6 and only recently has my website's access switched over to mostly IE8. Don't hold your breath for this.
    Amazingly, in 2010, the only correctly color managed browser on windows is still Safari as Firefox doesn't support v4 icc monitor profiles and IE9 doesn't color manage at all except for translating between spaces to sRGB which is not very useful. Chrome can be made to color manage on windows apparently with a command line switch. On Macs the situation is better since Safari, Chrome (only correctly on 10.6) and Firefox (only with v2 ICC monitor profiles) all color manage. However, on mobile platforms, not a single browser color manages!

Maybe you are looking for

  • Nowhere can input reason code in function BAPI_ACC_DOCUMENT_POST

    Hi..... Field Reason code is a required field for a G/L account,But it seems that nowhere can input it in function BAPI_ACC_DOCUMENT_POST's table parameter ACCOUNTGL.Thus I can use this function to create Accounting Document .....How can I solve it ?

  • Wifi dosen't work.

    Wifi dosen't work. The icon is gray and we can't switch it on. We have deleted all netword settings, but still it dosen't work

  • Thinkpad bluetooth mouse scrolling wheel not working in chrome only

    I have a lenovo V570c laptop with laser blue tooth mouse. I have windows 7 and I believe chrome did an upgrade last week and since then my mouse wheel does not scroll when in chrome browser. It works on internet explorer, ms office etc. on the chrome

  • Transport for structure creation

    Hi All , we have two clients 100 and 110 , the config  client is 100 , I have mistakenly created a three structures in 110 creating a transport in 110 . these below  were objects created under that transport in 110 after creation . Table Definition  

  • PS 7 locks when certain action is selected

    I have had this happen before but can't remember the fix. I'll write it down this time if someone can help me. As far as I can tell everything works except this... Open an image, any image. Select "Image": Select "Adjustments" Select "Levels"....The