Multiple Indexes

It sure would be nice if you could create more than one index.  I've been working on a parts catalog for my company for some time now.  I'd really like to have an Alphabetical Index by part name and a Numerical Index by part number.  Not such an easy task with what's currently available in CS4.  I'm using some suggestions I found in the forums to place them all in one index and seperate after creating the index.  Although, this would be much easier if InDesign offered the ability to create more than one index or TOC.  Obviously I'm not the only one who feels this way based on the results after doing a search for multiple indexes.  Maybe by the time I have to update the catalog next year this option will be available??  Let's hope!

How can we avoid full table scan and ask the optimizer(RBO) to look at the INDEX?First, you need to do an EXPLAIN PLAN on your query to see if an index is really being used. If it is, fine.
if not, you need to see the reasons. There could be many reasons, for example, if the WHERE clause uses a
FUNCTION (built-in or user-defined), Oracle may choose NOT to use the index. IF using a RBO, you are
limited by your options. If using CBO, you could use HINTS to instruct the optimizer to use a specific
index out of many available.
Also, make sure that the columns in where clause appear in the order in which they appear in your index. Does this really matter with individual indexes on individual columns?
Doesn't this only matter when there is a composite index on the set of columns?Yes, if you search on a group of columns more often, then it makes sense to have one index with those
group of columns instead of having a separate index for each column, since Oracle will use only one
of the available indexes at a time.
For the CBO, you can enhance the performance by providing STATISTICS for the tables involved in the
query (using ANALYZE command).
This is no comprehensive guide on SQL tuning. this is only tip of the iceburg, and there are lot many
other things that go along with it to make a query run faster...

Similar Messages

  • How to configure one TREX host with multiple index servers ?

    Hi All,
    Does anyone know how to configure TREX on the one host,
    with multiple index servers ?
    Reason for this is to make better use of resources available on the host server(4 Gig, 4 Processor, Windows2003), to improve the search performance of
    our KM content for portal users.
    I am using TREX 7 and have not been able to do this,
    despite reading the Single and Distributed install
    documentation.
    Any help would be appreciated.
    Regards,
    Andres

    Hi Andres,
    To make use of the RAM a Server provides you have to run two indexserver processes (each can then consume 2 GB);
    Proceed like this:
    1. Go to TREXdeamon.ini; check if section [indexserver2] is there (it is already provided, but not active in standard installation)
    2. In TREXdeamon.ini go to
    [daemon]
    references sections below
    programs=nameserver,preprocessor1,indexserver1,queueserver,alertserver
    and add indexserver2 here. Restart TREX; second porcess is then started; can be checked in TREX monitor in Portal as well
    3. To distribute existing indexes to the new process, start TREXadmintool and go to Index: Landscape
    Go to the last two columns and move the indexes (move master here/secondary mouse click)
    If you don't distribute the indexes the new index server process will be regarded when an new index is created.
    Hope this helps!
    cheers
    Bettina

  • Is there a way to do multiple indexes and ToCs?

    I have InDesign, CS2.  I am wondering, is it possible to do multiple indexes? For example, an index of names, a separate index for places. Similarly, is it possible to make multiple Tables of Contents? What I really want is a Table of Contents, a list of illustrations, a list of charts, and a list of maps.  What is the best way to go about this?  I realize I can make a table of contents, copy the text and use it, then change the toc settings to make a new one. So my main concern is the indexes, but I am curious if there is a better way for the tocs.
    Thanks

    The way you can do multiple indexes is by using the Symbol area of the 
    index topics and creating a separate index under different symbols. 
    You can set the alphabetic order manually. When you build the index, 
    you'll end up with separate sequences for each symbol and you then 
    just lay out each section where you need it.
    Not intuitive, but it works...
    Harbs

  • Need to create multiple indexes - will this work?

    For a catalog of about 350 pages, I need both a manufacturer index and a product index. I have read some of the creative solutions already posted here and in other web discussions, and I have an idea.
    Why not create two Book files? one could be "Catalog-Product.indb" and the other could be "Catalog-Manufacturer.indb". Basically two separate contexts for the series of layouts. When in the Product book, do all the indexing for that context, update the Product index and close the set of files (saving the Catalog-Product.indb as well and then closing it). Then open the Catalog-Manufacturer book and do the indexing for the Manufacturer index, generate it, save and close.
    The question is: will each of the two book files be able to ignore the invisible index metadata that belongs to the other book when generating the index? will there be trash index entries in the Index palette - representing those of the other book file? Or, can these two sets of metadata be properly kept separate?
    One consequence that I predict is that the Hyperlinks option during PDF Export from InDesign will be compromised - I would expect whichever book was inactive during the PDF export from the Book file would be the one whose index links would be non-functional.
    Can anyone tell me though whether this strategy could generate two proper indexes at least for a print document?

    Bill Planey wrote:
    For a catalog of about 350 pages, I need both a manufacturer index and a product index. I have read some of the creative solutions already posted here and in other web discussions, and I have an idea.
    Why not create two Book files? one could be "Catalog-Product.indb" and the other could be "Catalog-Manufacturer.indb". Basically two separate contexts for the series of layouts. When in the Product book, do all the indexing for that context, update the Product index and close the set of files (saving the Catalog-Product.indb as well and then closing it). Then open the Catalog-Manufacturer book and do the indexing for the Manufacturer index, generate it, save and close.
    The question is: will each of the two book files be able to ignore the invisible index metadata that belongs to the other book when generating the index? will there be trash index entries in the Index palette - representing those of the other book file? Or, can these two sets of metadata be properly kept separate?
    One consequence that I predict is that the Hyperlinks option during PDF Export from InDesign will be compromised - I would expect whichever book was inactive during the PDF export from the Book file would be the one whose index links would be non-functional.
    Can anyone tell me though whether this strategy could generate two proper indexes at least for a print document?
    Hi, Bill:
    Search Google for terms like "InDesign multiple index" without quotes. There are some good links for this; admittedly they're workarounds. If you take the time to file a formal request for this feature at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform, there's a chance the developers will eventually run out of excuses or higher-priority tasks, and include it in a future release.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Multiple index.hmtl files

    Can you tell me if I'm heading for trouble. I have created 2 sites which are linked through the Navigation menus. I've exported to a folder and now wish to upload them to a non .mac account. In the main folder named "AOS web" i have an index file then two folders for the 2 sites I created. In each of those folders there is and index file. Can anyone tell me why this is and is it going to cause problems, shouldn't there only be 1 index file. I have upload this same project to my .mac account and it works fine.

    I can't access the home page or contacts
    No problem for me to see Home, Information, and Contact US. Try clearing your browser cache or using a different browser.
    The multiple index.html files is completely normal for iWeb sites.

  • Indexes with multiple columns v/s multiple indexes with single column

    Hi Everyone,
    I have a table with below structure
    Create Table Test_Table
    Col1 int,
    Col2 int,
    Col3 int,
    Col4 int,
    Col5 int,
    Col6 int,
    Col7 int,
    Col8 bigint
    Col9 money
    Col10 money
    Now this table is being used in various reports. Since reports need various data, the filter clause for the report’s have various combination of table columns
    Example, Report 1 can have query like
    Select * from Test_Table where col1 = @val1
    Report 2:
    Select * from Test_Table where col1 = @val1 and col2 >=@val2
    Report3:
    Select * from Test_Table where col1 = @val1 and col2 >=@val2 and col3 =@val3 and col4 in(@val4)
    Report4:
    Select * from Test_Table where col1 = @val1 and col2 >=@val2 and col4 = @col4
    And many more combinations.
    Currently the table has many combinations of indexes
    Index1: col1, col2
    Index2: Col2
    Index3: col1, col2, col4
    Index4: col3 include (col9)
    Index5: col1, col2, col3, col4, col9
    Now I am into a performance issue where I have to create one more index with a slight variation from the existing combination of columns.
    Can you please let me know instead of having these various combination of indexes can I create multiple indexes on individual columns.
    Considering the above 4 examples which I have given for 4 reports, if I create 4 indexes separately on 4 individual columns col1, col2, col3, col4 will it be effective on all4 reports?
    Please suggest me the best way to create indexes on this table
    Thanks in advance,
    Raksha

    Do you really need to bring all columns ? Do not use SELECT *.
    Just a guess try index on col1, col2, col3, col4
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Using LabVIEW to Generate an XY Graph of Multiple, Indexed Plots?

    Hello,
    I have written a LabVIEW Program (using 8.2.1) to characterize FETs using GPIB instruments. At it's most basic level, the program sets a voltage across the Gate-Source terminals of the FET, sets a voltage across the Drain-Source terminals of the FET, reads this second voltage, and then reads the Drain-Source current. The Drain-Source voltage is then increased, the current read, and so on. In this manner, the Drain-Source voltage is swept from 0V to some defined maximum (dependent on the FET being tested) and an array of data (I_{DS} vs. V_{DS}) is generated. The Drain-Source is then reset to 0, the Gate-Source voltage is increased, and the entire process is repeated.
    My problem is this: I need to generate a single Graph  (I think it should be XY, but not entirely certain), that plots all of these IV curves (each curve for each Gate-Source voltage) and indicates the Gate-Source voltage for each curve (in an indexed legend of some sort). Does anyone have any suggestions about how I should do this? My program is entirely based on For Loops and Sequence Structures. If you need a screen shot or want me to upload the program, please let me know. Fair warning, though: I am a LabVIEW novice so while the program functions correctly, it is not the prettiest in the world.
    Thanks for any help you can provide.
    Michael
    P.S. I searched the forums and didn't find this question already posted. If, however, it was and I just missed it, could someone direct me to it? Thanks.

    Vincent, Jon, and Andrew:
    I still need some help. I used the 3524.vi Example for the XY Graph: x-array, y-array definition to generate the kind of multiple plot xy graph that I needed. My problem now is I would like to re-index the plots so that they are labeled according to the Gate-Source voltage I am applying. Each curve has its own, distinct Gate-Source voltage and I would like to label each curve with its Gate-Source voltage. Currently, the plots are labeled in the legend: Plot 0, Plot 1, Plot 2, ... Plot n.
    How should I go about doing this (is there even a way to do this)?
    Again, any help would be greatly appreciated.
    Michael
    P.S. I have attached a copy of my program to this message. As I said, it isn't pretty, but it works so far. Hopefully this will help you in forming your suggestions.
    Attachments:
    FET Characterization Program (V2).vi ‏100 KB

  • Multiple index entries for single object.

    Hi,
    Can someone guide me whether coherence allows multiple keys to be inserted in an index for given record(value)? I mean I will insert a single 'value' in the cache and multiple keys for it in the index, and I should be able to search that 'value' using ANY one key (not the combination of keys). I mean the search should use the index and hence should be fast. (Similar to lucene where it will tokenize the specified text and add individual tokens to the index so that you can locate given document using any single token).
    Bharat

    Hi Bharat,
    Hopefully I am understanding your question correctly.
    Adding an index allows Coherence to correlate attributes of values stored in a cache to the corresponding keys in the cache which can result in an increase in the performance of keySet and entrySet methods. This mechanism does not give you an alternate key to use with the get method.
    cheers,
    -David

  • Multiple index profile or cluster on FAST ESP 5.3

    Can we more than one index profile in like one index profile per collection or multiple cluster pointing to different  index profile.

    One per collection would mean one cluster per collection, which may be doable but tricky  to operate.
    The cluster is tied to only one index profile , so collections within the same cluster share the same Index profile.
    So, you can have a farm with multiple clusters, but usually this kind of setup in the past was done with the help of FAST consulting services.

  • Multiple indexes using same columns on one table - is this doable?

    Hi
    I have a table like MyTab(a int, b int), and I am required to create a primary key index and a non-unique index on this table using columns (a,b) in a specific table space.
    The back end database is Oracle 10g.
    Here's what I have tried so far, needless to say, unsuccessfully.
    Alter Table MyTab
    Add Constraint c_1 primary key (a, b)
    Using Index (Create index mytab_idx on MyTab(a, b))
    Using index tablespace results_index
    So my question are:
    1. is this is possible? if so, what is the correct syntax.
    2. assuming it is possible, has anyone used this sort of construct before? it appears to be conflicting and inconsistent to me.
    Many thanks, and kind regards,
    Naran

    Naran H wrote:
    Hi
    I have a table like MyTab(a int, b int), and I am required to create a primary key index and a non-unique index on this table using columns (a,b) in a specific table space.
    The back end database is Oracle 10g.
    Here's what I have tried so far, needless to say, unsuccessfully.
    Alter Table MyTab
    Add Constraint c_1 primary key (a, b)
    Using Index (Create index mytab_idx on MyTab(a, b))
    Using index tablespace results_index
    You can't have the unique and non-unique indexes in place at the same time, but you can have the non-unique index supporting the unique (PK) constraint.
    I guess your problem is that you don't want to have an interval of time where you have dropped the existing unique index while you create the replacement.
    The only current way I can think of for getting from:
    unique index(a,b)
    to
    non-unique index(a,b) with PK constraint (a,b)
    without having a point in time where bad data can appear, and with minimal locking is:
    create unique index (b,a) online;
    drop index (a,b);
    create non-unique index(a,b) online;
    add primary key using index (a,b) enabled, novalidate
    validate primary key
    drop index (b,a)Regards
    Jonathan Lewis

  • Is it possible to store a multiple indexes for the same value extractor?

    I ran into a situation where there were different queries that I was interested in doing that might have benefitted from having several indexes, sorted differently, but for the same ValueExtractor() instance.
    Is this good practice, is it recommended, and is there a clean way to do it? It seemed like the only way I could logically "trick" the system into it would be passing some sort of "query type" constant into the ValueExtractor when it was created, and then making the equals and hashCode() methods on the ValueExtractor delegate to the constant for equality, but this seemed like a massive hack.

    Hi Kris,
    First, try without each value extractor and see how the different queries compare in performance. You may find that you need only one. If you find otherwise, please let us know because it may indicate a good area for additional optimizations.
    Second, you are correct that the value extractor is the key of the index, and thus to have two indexes on the same value, you will need two different value extractors (i.e. the hashcode/equals comment you made.)
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Coherence: Easily share live data across a cluster!

  • Multiple index (indices) in one document

    Is it possible to create two indices within one document?
    I've got a book made up of 4 separate indesign docs. I'd like to generate two indices – one listing brands, the other listing by product type
    Is it possible, or is the index function only set up to handle one index per book/document?

    peter at knowhowpro wrote:
    Peter Spier wrote:
    I think it's a difference of interpretation.
    That's what I love about this place.
    My take was the OP wants several indexes included, each from different entries, where you seem to think the OP want s to choose a single index to include from a list of possible indices based on different entries. I'd say conditinal text would do an excellent job of that, but I'm not sure in the real world anyone would actually want to do it. Why mark index entries at all if you don't plan on including them?
    Each for a different edition/product/brand edition. I thought that was the goal.
    OK, I'l buy that as a legitimate possibility, in general, but in rereading the first post I stand by my position.

  • Multiple index scenario

    Suppose I have a table that has (among other columns) the following columns:
    LAST_UPDATE DATE,
    CATEGORY VARCHAR(1) NOT NULL,
    The statistics of the data are as follows:
    - CATEGORY can only be one of 5 different values: 'A', 'B', 'C', 'D' and 'E'
    - The distribution of the DATE values are pretty uniform. For instance, the number of rows in any 10-minute period is pretty much the same as any other 10-minute period.
    - The number of rows for a given value of LAST_UPDATE is almost always 0 or 1. In other words, SELECT * ... WHERE LAST_UPDATE = :p1 almost never returns more than one row.
    - The distribution of the CATEGORY values are roughly equally proportioned.
    - There are a lot of rows in the table
    I want to optimize the following queries:
    A. SELECT ... FROM ... WHERE LAST_UPDATE BETWEEN :p1 and :p2;
    B. SELECT ... FROM ... WHERE LAST_UPDATE BETWEEN :p1 and :p2 and CATEGORY = :p3;
    Even though it generally is a mistake to ask two questions in the same forum post, here I go:
    1. Will an index on (LAST_UPDATE) work better/worse/the same than one on (LAST_UPDATE, CATEGORY)?
    2. Will Oracle be able to use an index on (CATEGORY, LAST_UPDATE) for the first query?
    My intuition tells me that an index on (LAST_UPDATE) alone should just work as well as the multi-column index (LAST_UPDATE, CATEGORY). In fact, the multi-column index might be less performant in that it might take up more space and make Oracle do more unhelpful work.
    As for #2, my understanding is that Oracle can use an index on (CATEGORY, LAST_UPDATE) for query A. It will effectively rewrite the query as a UNION:
    SELECT ... FROM WHERE (LAST_UPDATE BETWEEN :p1 and :p2) AND (CATEGORY = 'A')
    UNION_ALL
    SELECT ... FROM WHERE (LAST_UPDATE BETWEEN :p1 and :p2) AND (CATEGORY = 'B')
    UNION_ALL
    SELECT ... FROM WHERE (LAST_UPDATE BETWEEN :p1 and :p2) AND (CATEGORY = 'E')
    Comments?
    Edited by: user10936714 on Nov 21, 2011 12:39 PM
    Edited by: user10936714 on Nov 21, 2011 12:47 PM

    My intuition tells me that...Why not put together a test scenario?

  • Multiple indexes on a table with various combinations

    Hi Experts,
    This post is similar to my previous one on indexing. am just trying to understand proper indexing strategy.
    Assuming that i have to use following queries frequently.
    select Col1, Col2, Col3 from tab where col4='some value'
    select Col1, Col2, Col3 from tab where col5='some value'
    select Col1, Col2, Col3 from tab where col6='some value'
    select Col1, Col2, Col3 from tab where col7='some value'
    select Col1, Col2, Col3 from tab where col8='some value'
    select Col1, Col2, Col3 from tab where col9='some value'
    select Col1, Col2, Col3 from tab where col10='some value'
    here, my doubt is, do we need to create "1 clustered + 6 NC covering" indexes (total 7) as we have 7 different columns in the where clause in 7 different select statements? Or, is there any better way of doing this?
    Thanks,
    Shiva

    >am just trying to understand proper indexing strategy.
    There is no such a thing. It is an art.
    Generally you can use covering index for a business critical query. But that may slow down other queries because the covering index usually wide! You need to
    check the execution plans for each query involved.
    It is better to apply narrow fast indexes that way other queries will not slow.
    Remember STATISTICS! It should be updated nightly:
    http://www.sqlusa.com/articles/query-optimization/
    The database engine uses the STATISTICS for the execution plan preparation not the index.
    For best performance the indexes should be narrow (fast) and STATISTICS up-to-date.
    Missing/fragmented/wide indexes & out-of-date STATISTICS are detrimental for performance.
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Help!  Pages is killing my files: multiple "index.pages" couldn't be opened error messages.*

    I have had 4 pages files in the last two weeks get corrupted and come up with the error messafe: "'index.pages' couldn't be opened.  The requried index.xml file is missing."  I have tried several ways to restore the file, but none work.  My bigger question and waht i want to know is how to stop this from happening again. Please Advise.
    Macbook Pro
    10.8.3
    Pages 09

    I tried some of the other suggestions on the Forum and none of them worked.
    However, I right clicked on the corrupted file in the Finder and selected Show Package Contents. In the subsequent menue, there was an index.pages file.  I opened it in Pages and voilå there was my file complete with tracked changes and comments.
    Hope it works for you.
    M.

Maybe you are looking for

  • Error message "Live file system repair is not supported."

    System won't boot. Directed to Disk Utility to repair but get error message "Live file system repair is not supported."  Appreciate all help. Thanks. John

  • Firefox doesn't close when I'm trying to close it and links fail to complete.

    I'm on Windows Vista Home Premium on a Dell Inspiron. When I first log into Firefox, it will come up (slowly), but if I try to go to a linked site, it seems to balk, and looks like it is partially connecting, but the connection doesn't actually take.

  • About License synchronization on 4507R-E

    hello ,everyone. i got a mission that i need to sychronous a  license from an old SUP7-E to a new one, the license level is ipbase ,and it has been installed on the chassis 4507-E,then i looked up the documents from cisco.com  and find a way to make

  • Problem with this Website : FilesFetche

    first i have macbook pro 10.7.5, i use google chrome, i have problem with this Website : FilesFetcher, i can't Surf the Internet Comfortably, if i open any Website be instead of it, after few Second, i need Surf the Internet Comfortably, - please hel

  • How parse XML document for output

    I have this users.xml document : <?xml version="1.0" ?> <!DOCTYPE users[ <!ELEMENT users (user+) > <!ELEMENT user (mail,password)+ > <!ELEMENT mail (#PCDATA)> <!ELEMENT password (#PCDATA)> <!ATTLIST userid CDATA #REQUIRED > ] > <users> <user id='3'>