How to 'speed up' snapshot query refreshes

Is there a way to force snapshot queries to refresh? Is it tied to a job in the automation service?
Sometimes there are little fires where i need docs to update right away and 'it'll take 15 minutes' isn't received very well...

Is there a way to force snapshot queries to refresh? Is it tied to a job in the automation service?
Sometimes there are little fires where i need docs to update right away and 'it'll take 15 minutes' isn't received very well...

Similar Messages

  • How to speed up this query?

    I have created a demo table:
    create table demo1(d date);
    and insert some data to table:
    begin
    -- add 6000000 rows
    for i in 1..1000000 loop
    insert into demo1 values(trunc(sysdate-i));
    insert into demo1 values(trunc(sysdate-i));
    insert into demo1 values(trunc(sysdate-i));
    insert into demo1 values(trunc(sysdate-i));
    insert into demo1 values(trunc(sysdate-i));
    insert into demo1 values(trunc(sysdate-i));
    end loop;
    commit;
    end;
    The query
    select * from demo1
    where d=to_date('25.10.2004','DD.MM.YYYY')
    executed three times faster than
    select from demo1 where d=trunc(sysdate-1);
    Why? How to speed up this query if I do not want to use index?
    I have created index:
    create index demo1_indx on demo1(d);
    Execution time of queries became identical (for this volume of data).

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create table demo1(d date);
    Table created.
    SQL> begin
    2 for i in 1..1000000 loop
    3 insert into demo1 values(trunc(sysdate-i));
    4 insert into demo1 values(trunc(sysdate-i));
    5 insert into demo1 values(trunc(sysdate-i));
    6 insert into demo1 values(trunc(sysdate-i));
    7 insert into demo1 values(trunc(sysdate-i));
    8 insert into demo1 values(trunc(sysdate-i));
    9 insert into demo1 values(trunc(sysdate-i));
    10 insert into demo1 values(trunc(sysdate-i));
    11 end loop;
    12 commit;
    13 end;
    14 /
    PL/SQL procedure successfully completed.
    SQL> alter session set timed_statistics=true;
    Session altered.
    SQL> alter session set sql_trace=true;
    Session altered.
    SQL> set timing on;
    SQL> set autotrace on;
    SQL> select * from demo1 where d='25.10.2004';
    D
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    8 rows selected.
    Elapsed: 00:00:10.70
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3285 Card=159 Byte
    s=1431)
    1 0 TABLE ACCESS (FULL) OF 'DEMO1' (TABLE) (Cost=3285 Card=159
    Bytes=1431)
    Statistics
    29 recursive calls
    1 db block gets
    28988 consistent gets
    13030 physical reads
    1035300 redo size
    453 bytes sent via SQL*Net to client
    508 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    8 rows processed
    SQL> select * from demo1 where d='25.10.2004';
    D
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    8 rows selected.
    Elapsed: 00:00:03.35
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3285 Card=159 Byte
    s=1431)
    1 0 TABLE ACCESS (FULL) OF 'DEMO1' (TABLE) (Cost=3285 Card=159
    Bytes=1431)
    Statistics
    0 recursive calls
    0 db block gets
    14441 consistent gets
    12837 physical reads
    0 redo size
    453 bytes sent via SQL*Net to client
    508 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    8 rows processed
    SQL> select * from demo1 where d='25.10.2004';
    D
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    8 rows selected.
    Elapsed: 00:00:04.95
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3285 Card=159 Byte
    s=1431)
    1 0 TABLE ACCESS (FULL) OF 'DEMO1' (TABLE) (Cost=3285 Card=159
    Bytes=1431)
    Statistics
    0 recursive calls
    0 db block gets
    14441 consistent gets
    12757 physical reads
    0 redo size
    453 bytes sent via SQL*Net to client
    508 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    8 rows processed
    SQL> select * from demo1 where d='25.10.2004';
    D
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    8 rows selected.
    Elapsed: 00:00:03.82
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3285 Card=159 Byte
    s=1431)
    1 0 TABLE ACCESS (FULL) OF 'DEMO1' (TABLE) (Cost=3285 Card=159
    Bytes=1431)
    Statistics
    0 recursive calls
    0 db block gets
    14441 consistent gets
    12752 physical reads
    0 redo size
    453 bytes sent via SQL*Net to client
    508 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    8 rows processed
    SQL> select * from demo1 where d=trunc(sysdate-3);
    D
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    8 rows selected.
    Elapsed: 00:00:17.53
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3696 Card=159 Byte
    s=1431)
    1 0 TABLE ACCESS (FULL) OF 'DEMO1' (TABLE) (Cost=3696 Card=159
    Bytes=1431)
    Statistics
    6 recursive calls
    0 db block gets
    14503 consistent gets
    12758 physical reads
    0 redo size
    453 bytes sent via SQL*Net to client
    508 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    8 rows processed
    SQL> select * from demo1 where d=trunc(sysdate-3);
    D
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    8 rows selected.
    Elapsed: 00:00:15.82
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3696 Card=159 Byte
    s=1431)
    1 0 TABLE ACCESS (FULL) OF 'DEMO1' (TABLE) (Cost=3696 Card=159
    Bytes=1431)
    Statistics
    0 recursive calls
    0 db block gets
    14441 consistent gets
    12753 physical reads
    0 redo size
    453 bytes sent via SQL*Net to client
    508 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    8 rows processed
    SQL> select * from demo1 where d=trunc(sysdate-3);
    D
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    8 rows selected.
    Elapsed: 00:00:14.56
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3696 Card=159 Byte
    s=1431)
    1 0 TABLE ACCESS (FULL) OF 'DEMO1' (TABLE) (Cost=3696 Card=159
    Bytes=1431)
    Statistics
    0 recursive calls
    0 db block gets
    14441 consistent gets
    12758 physical reads
    0 redo size
    453 bytes sent via SQL*Net to client
    508 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    8 rows processed
    SQL> select * from demo1 where d=trunc(sysdate-3);
    D
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    25.10.04
    8 rows selected.
    Elapsed: 00:00:11.84
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=3696 Card=159 Byte
    s=1431)
    1 0 TABLE ACCESS (FULL) OF 'DEMO1' (TABLE) (Cost=3696 Card=159
    Bytes=1431)
    Statistics
    0 recursive calls
    0 db block gets
    14441 consistent gets
    12757 physical reads
    0 redo size
    453 bytes sent via SQL*Net to client
    508 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    8 rows processed
    SQL> alter session set sql_trace=false;
    Session altered.
    Elapsed: 00:00:00.00
    SQL> alter session set timed_statistics=false;
    Session altered.
    Elapsed: 00:00:00.01
    SQL>

  • How to speed up the query result time

    While executing the following query the result comes after 22 secs.
    How could i minimize this time ? Please suggest.
    SELECT DISTINCT
           PERIOD_NO,
           ITEM_CODE,
           ITEM_NAME,
           SUM(CASE WHEN LEVEL_TYPE IN 'SUB ZONE' THEN WD_FORECAST_QTY_BU / CNV / ML ELSE 0 END)TOT_FRCST
    FROM   SHEET_HEAD, SHEET_DETAIL, ITEM_DETAIL
    WHERE  WH_SYS_ID = WD_WH_SYS_ID
    AND    ITEM_CODE = WD_ITEM_CODE(+)
    AND    PERIOD_NO BETWEEN :PERIOD1 AND :PERIOD2
    AND    WH_REVISION_NO = 0
    AND    WH_LEVEL_CODE NOT IN (SELECT WH_LEVEL_CODE FROM SHEET_HEAD WHERE WH_REVISION_NO = 1)
    GROUP BY   ITEM_CODE, ITEM_NAME, WH_PERIOD_NOSanjay

    Hi,
    with speed the suggest would always be expirement with indexing on the parameters, after first analysing what is currently happening in terms of full table scans etc that are 'most expensive'.
    In terms of the specifics on your code the following sticks out as costly; -
    AND    WH_LEVEL_CODE NOT IN (SELECT WH_LEVEL_CODE FROM SHEET_HEAD WHERE WH_REVISION_NO = 1)Here I would see if you can rewrite it, perhaps with a left join / self join to achieve the same ends, compare the timings you may be surprised.
    regards,
    Robert.

  • How to speed up the query time after adding order by

    Hi,
    In Form 6.0 front-end and 8i server, I put an "order by date
    column desc" in Block Property and when I hit query button the
    screen will bring up the most current date data instead of
    oldest date data. The problem is slowing down the query time,
    because the "order by" does the resorting work in the user temp
    table space. The base table to be queried also contains two
    varchar2(1500) columns and that also slow down the query time.
    I am wondering if there is any other way to bring the current
    records first without slow down the query speed ?
    Any thought will be helpful and appreciated.
    Thnaks!
    Tony
    null

    anthony hsu (guest) wrote:
    : Hi,
    : In Form 6.0 front-end and 8i server, I put an "order by date
    : column desc" in Block Property and when I hit query button the
    : screen will bring up the most current date data instead of
    : oldest date data. The problem is slowing down the query time,
    : because the "order by" does the resorting work in the user
    temp
    : table space. The base table to be queried also contains two
    : varchar2(1500) columns and that also slow down the query time.
    : I am wondering if there is any other way to bring the current
    : records first without slow down the query speed ?
    : Any thought will be helpful and appreciated.
    : Thnaks!
    : Tony
    What I have done is use hints to force the use of an index in
    descending order. The part of the following example that
    pertains to your question is the index_desc hint. Syntax and
    suggestions for using hints are in the Oracle documentation.
    The column you want to order desc by would have to be in an
    index. The following example creates a view which you might not
    need to do.
    create or replace view v_sample_result as
    select
    /*+
    first_rows
    index ( sa )
    index_desc ( t c_test_altk )
    index ( r c_result_pk )
    index ( lt )
    null

  • How to speed up a query?

    I want to select the MM generated documents from BKPF table where the awkey = MM Invoice no + FY and the awtyp = "RMRP". However since the BKPF table is very huge it takes a lot of time to execute.
    Hence i would like to know if there is any other faster way to speed this query?

    Hi ,
    Following points will help to improve performance.
    1. Creation of secondary index with the fields you are using in select query.You need to do runtime anaysis and trace analysis to view the impact of this.
    2. Try to minimize number of hits to the database table.Get the desired records from table in one go.
    3. Try to minimize the records fetched from the table.You can achive this by making some fields on screen as mandatory and using them in where condition of select statement.
    Hope this helps you.

  • How to Speed up my query

    I have this below sample query with multiple joins involved, which is taking longer time than usual like around more than 5-10 min in the reports.
    I have 100,000 records in the application table. I started noticing the query got slowed down when i joined person p2 table to p5 table, i think joining same table multiple times is causing the issue
    Things i tried are using "+ 0" at the join condition, outer join and created a package which returns name when pid is sent, it doesn't make any difference.
    Is there any method to reduce the execution time. I haven't found anything similar topics around here, if anything i missed please redirect me. Thanks
    SELECT a.anumber,
    p1.name,
    p2.name,
    p3.name,
    p4.name,
    p5.name,
    o1.name,
    o2.name,
    fnc (business_day)
    FROM application a,
    person p1,
    person p2,
    person p3,
    person p4,
    person p5,
    office o1,
    office o2
    WHERE a.pid = p1.pid
    AND a.pid = p2.pid
    AND a.pid = p3.pid
    AND a.pid = p4.pid
    AND a.pid = p5.pid
    AND a.oid = o1.oid
    AND a.oid = o2.oid;
    Thanks
    Kumar

    @ user4530562: EMPLOYEE has 70,000 records, OFFICE has 3000 records, can you see added execution plan below and i did not use any indexes on my APPLICATION Table.
    @onedbguru: below i have the execution plan, just wanted you to tell that you would see other tables like status,description but those doesn't make the query slow.
    @ Thomas Morgan: Thanks for replicating the tables and query, but my EMPLOYEE table has multiple columns and my OFFICE table has multiple columns, i mentioned them in an overview state, as the information is secured i am sorry i cant reveal all the names, if can understand what i mean.Thank you so much.
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=1302 Card=75183 Bytes=27516
    1 0 VIEW OF 'OFFICE_V' (VIEW) (Cost=57 Card=3 Bytes=405)
    2 1 SORT (UNIQUE) (Cost=57 Card=3 Bytes=239)
    3 2 UNION-ALL
    4 3 FILTER
    5 4 FAST DUAL (Cost=2 Card=1)
    6 3 FILTER
    7 6 FAST DUAL (Cost=2 Card=1)
    8 3 NESTED LOOPS (OUTER) (Cost=50 Card=1 Bytes=239)
    9 8 NESTED LOOPS (Cost=5 Card=1 Bytes=106)
    10 9 NESTED LOOPS (OUTER) (Cost=4 Card=1 Bytes=64)
    11 10 TABLE ACCESS (BY INDEX ROWID) OF 'OFFICE__U
    12 11 INDEX (UNIQUE SCAN) OF 'OFFICE_UNITS_PK' (IN
    13 10 TABLE ACCESS (BY INDEX ROWID) OF 'COST_ALLOCATION_K
    14 13 INDEX (UNIQUE SCAN) OF 'COST_ALLOCATION_KEYFLE_PK
    15 9 TABLE ACCESS (BY INDEX ROWID) OF 'LOCATIONS_ALL' (TABL
    16 15 INDEX (UNIQUE SCAN) OF 'LOCATIONS_PK' (INDEX (UNIQUE
    17 8 VIEW (Cost=45 Card=1 Bytes=133)
    18 17 NESTED LOOPS
    19 18 NESTED LOOPS (Cost=45 Card=40 Bytes=1720)
    20 19 TABLE ACCESS (BY INDEX ROWID) OF 'FND_FLEX_VALUES' (T
    21 20 INDEX (RANGE SCAN) OF 'FND_FLEX_VALUES_N2' (INDEX)
    22 19 INDEX (UNIQUE SCAN) OF 'FND_FLEX_VALUES_TL_U1' (INDEX
    23 18 TABLE ACCESS (BY INDEX ROWID) OF 'FND_FLEX_VALUES_TL' (
    24 0 TABLE ACCESS (BY INDEX ROWID) OF 'LOCATIONS_ALL' (TABLE) (Cost=2
    25 24 INDEX (UNIQUE SCAN) OF 'LOCATIONS_PK' (INDEX (UNIQUE)) (Cost=1
    26 0 VIEW OF 'EMPLOYEE_V' (VIEW) (Cost=24 Card=4 Bytes=860)
    27 26 SORT (UNIQUE) (Cost=24 Card=4 Bytes=301)
    28 27 UNION-ALL
    29 28 FILTER
    30 29 FAST DUAL (Cost=2 Card=1)
    31 28 FILTER
    32 31 FAST DUAL (Cost=2 Card=1)
    33 28 NESTED LOOPS
    34 33 NESTED LOOPS (Cost=15 Card=1 Bytes=106)
    35 34 TABLE ACCESS (BY INDEX ROWID) OF 'ALL_ASSIGNMENTS_F'
    36 35 INDEX (RANGE SCAN) OF 'ASSIGNMENTS_F_N12' (INDEX) (
    37 34 INDEX (RANGE SCAN) OF 'PEOPLE_F_PK' (INDEX (UNIQUE))
    38 33 TABLE ACCESS (BY INDEX ROWID) OF 'ALL_PEOPLE_F' (TABLE)
    39 28 TABLE ACCESS (BY INDEX ROWID) OF 'CONTRACTORS' (TABL
    40 39 INDEX (UNIQUE SCAN) OF 'CONTRACTORS_PK' (INDEX (UNIQUE))
    41 0 VIEW OF 'EMPLOYEE_V' (VIEW) (Cost=24 Card=4 Bytes=860)
    42 41 SORT (UNIQUE) (Cost=24 Card=4 Bytes=301)
    43 42 UNION-ALL
    44 43 FILTER
    45 44 FAST DUAL (Cost=2 Card=1)
    46 43 FILTER
    47 46 FAST DUAL (Cost=2 Card=1)
    48 43 NESTED LOOPS
    49 48 NESTED LOOPS (Cost=15 Card=1 Bytes=106)
    50 49 TABLE ACCESS (BY INDEX ROWID) OF 'ALL_ASSIGNMENTS_F'
    51 50 INDEX (RANGE SCAN) OF 'ASSIGNMENTS_F_N12' (INDEX) (
    52 49 INDEX (RANGE SCAN) OF 'PEOPLE_F_PK' (INDEX (UNIQUE))
    53 48 TABLE ACCESS (BY INDEX ROWID) OF 'ALL_PEOPLE_F' (TABLE)
    54 43 TABLE ACCESS (BY INDEX ROWID) OF 'CONTRACTORS' (TABL
    55 54 INDEX (UNIQUE SCAN) OF 'CONTRACTORS_PK' (INDEX (UNIQUE))
    56 0 TABLE ACCESS (BY INDEX ROWID) OF 'SUBJECT' (TABLE) (Cost=1
    57 56 INDEX (UNIQUE SCAN) OF 'SUBJECT_PK' (INDEX (UNIQUE)) (Cost=0 C
    58 0 TABLE ACCESS (BY INDEX ROWID) OF 'CATEGORY' (TABLE) (Cost=
    59 58 INDEX (UNIQUE SCAN) OF 'CATEGORY_PK' (INDEX (UNIQUE)) (Cost=0
    60 0 TABLE ACCESS (BY INDEX ROWID) OF 'PRE_DESCRIPTION' (TABLE)
    61 60 INDEX (UNIQUE SCAN) OF 'PRE_DESCRIPTION_PK' (INDEX (UNIQUE)) (Cos
    62 0 TABLE ACCESS (BY INDEX ROWID) OF 'ASSIGNED_GROUP' (TABLE)
    63 62 INDEX (UNIQUE SCAN) OF 'ASSIGNED_GROUP_PK' (INDEX (UNIQUE)) (Cost
    64 0 VIEW OF 'EMPLOYEE_V' (VIEW) (Cost=24 Card=4 Bytes=860)
    65 64 SORT (UNIQUE) (Cost=24 Card=4 Bytes=301)
    66 65 UNION-ALL
    67 66 FILTER
    68 67 FAST DUAL (Cost=2 Card=1)
    69 66 FILTER
    70 69 FAST DUAL (Cost=2 Card=1)
    71 66 NESTED LOOPS
    72 71 NESTED LOOPS (Cost=15 Card=1 Bytes=106)
    73 72 TABLE ACCESS (BY INDEX ROWID) OF 'ALL_ASSIGNMENTS_F'
    74 73 INDEX (RANGE SCAN) OF 'ASSIGNMENTS_F_N12' (INDEX) (
    75 72 INDEX (RANGE SCAN) OF 'PEOPLE_F_PK' (INDEX (UNIQUE))
    76 71 TABLE ACCESS (BY INDEX ROWID) OF 'ALL_PEOPLE_F' (TABLE)
    77 66 TABLE ACCESS (BY INDEX ROWID) OF 'CONTRACTORS' (TABL
    78 77 INDEX (UNIQUE SCAN) OF 'CONTRACTORS_PK' (INDEX (UNIQUE))
    79 0 TABLE ACCESS (BY INDEX ROWID) OF 'STATUS' (TABLE) (Cost=1
    80 79 INDEX (UNIQUE SCAN) OF 'STATUS_PK' (INDEX (UNIQUE)) (Cost=0 Card=
    81 0 TABLE ACCESS (FULL) OF 'APPLICATION' (TABLE) (Cost=1302 Card=7
    If this info is not sufficient please can you tell me whether there is any other solutions at the join condition that i can use like "+ 0", "(+)" or can i use functions/packages for office and employees to get names or any other methods other than joins.

  • How to create snapshot portlet and snapshot query using server API

    How to create snapshot portlet and snapshot query using server API
    Regards
    Dheeraj

    Hi Sebastian,
    I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
    RehaanKhan. M
    see the method discussed here
    http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How do I speed up the email refresh time on my Mac ? iPad and IPhone almost a minute or more faster using same connection?

    How do I speed up the email refresh time on my MAC?

    Hi ToddSATX, 
    Thank you for contributing to the Apple Support Communities. 
    It sounds like you receive email a few minutes faster on your iOS devices than on your Mac. This may be normal behavior, although there are a few settings that you can check if the delay is longer than that. 
    If you have a portable Mac, you may notice an improvement when it is connected to the power adapter. You can also select "Use IDLE command if the server supports it" from Preferences > Accounts > Advanced in the Mail menu (at the top left of the screen).
    You can find this information here:
    Mail (Yosemite): General preferences
    Check for new messages
    When Mail gets new messages from the mail server. By default, the option is set to Automatically (Mail varies how often it gets messages, based on whether your Mac is plugged into an electrical outlet). 
    An IMAP account may get messages more frequently if the mail server supports the IDLE command; make sure the option to use it is selected in the account’s Advanced pane in Mail preferences. 
    If you set the option to Manually, click the Get Mail button  in the Mail toolbar to check for messages. (Whenever you click an IMAP or Exchange mailbox, it syncs with the server, and shows new messages.)
    Best Regards,
    Jeremy 

  • How do I speed up this query by ignoring computers off the network faster?

    Good afternoon,
    I am running the below script to query the entire domain for local admins. Could anyone reccomend a way to speed this up by more quickly skipping computers that aren't on the network? Currently, every time it reaches a computer that is not on the network
    it hangs for up to 20 seconds (computers on the network return the data in less than a second). If I could decrease the ping time-out time, I could speed up this query tenfold.
    Script pasted below - Thank you!!!
    $Searcher = New-Object DirectoryServices.DirectorySearcher([ADSI]"")
    $Searcher.Filter = "(objectClass=computer)"
    $Computers = ($Searcher.Findall())
    md C:\Reports\IBX_Local_Admins_ALL
    Foreach ($Computer in $Computers)
    $Path=$Computer.Path
    $Name=([ADSI]"$Path").Name
    write-host $Name
    $members =[ADSI]"WinNT://$Name/Administrators"
    $members = @($members.psbase.Invoke("Members"))
    $members | foreach {$_.GetType().InvokeMember("Name", 'GetProperty',
    $null, $_, $null) | out-file -append C:\Reports\IBX_Local_Admins_ALL\$name.txt

    This version will not fail no matter what is in the group.
    function Get-LocalAdmins{
    [CmdLetBinding()]
    Param(
    [Parameter(
    Mandatory=$true,
    ValueFromPipeline=$true,
    Position=0
    )]$computer
    Process{
    Write-Verbose "Polling system: $computer"
    if(Test-Connection $Computer -quiet -count 1){
    $group=[ADSI]"WinNT://$computer/Administrators"
    $group.Invoke("Members") |
    ForEach-Object{
    New-Object PsObject -Property @{
    Computer=$Computer
    aDSPath=$_.GetType().InvokeMember('aDSPath', 'GetProperty',$null, $_, $null)
    #UserID=$_.GetType().InvokeMember('Name', 'GetProperty',$null, $_, $null)
    }else{
    Write-Warning "System not found: $computer"
    $computers=([adsisearcher]'(objectClass=computer)').FindAll() |%{$_.Properties['name']}
    $computers | Get-LocalAdmins -verbose
    ¯\_(ツ)_/¯
    Hi JRV,
    Thank you for your help so far! When I ran the above version, it seemed to be going fine but it stopped at a certain point saying the script was "successful", but it only queried 148 computers. I should note that it is also the same 148 computers each time
    I run it. No errors, it just stops and says successful. Any ideas?
    TY!

  • How to speed up SQL spatial query (spatial index error)

    Hi,
    Im trying to split polylines by points which have a small buffer around them. Currently i have over 370,000 lines and 320,000 nodes and the query is running really slowly (ive left it for 3 days and it still hasnt completed). I have tried forcing a spatial
    index using with (Index(SI_tempPD)) but i get the following error:
    "The query processor could not produce a query plan for a query with a spatial index hint. Reason: Could not find required binary spatial method in a condition. Try removing the index hints or removing SET FORCEPLAN."
    below is the snippet of code that im trying to run when i get the error:
    BEGIN INSERT INTO TempLines ( [linenum] ,[ogr_geometry] ) SELECT lines.[linenum] ,lines.[ogr_geometry].STDifference(points.[ogr_geometry].STBuffer(0.005)) AS ogr_geometry FROM dbo.TemplineData AS lines with(Index(SI_tempPD)) INNER JOIN dbo.[TemplineNodes] AS points ON lines.[ogr_geometry].STIntersection(points.[ogr_geometry]).STDistance(points.[ogr_geometry]) < 1 WHERE (lines.[linenum] <> points.[linenum]) END
     is there anyway i can speed up the query? (I also have a clustered primary key) the execution plan shows that a filter takes up 36% of the cost and the insert takes up 64%
    Any help would be greatly appreciated! (im using SQL Server 2008 (SQL server Management studio 10.50.1600.1))

    SQL Server spatial indexes don't support STDifference or STIntersection, see
    https://technet.microsoft.com/en-us/library/bb895373(v=SQL.105).aspx, which is why you get the error. 
    Your query is doing multiple expensive spatial operations against some fairly good-size tables in a join. You might get better results by either breaking the query into multiple simpler queries (SELECT into a temporary table and move the STDifference and
    STBuffer and INSERT off to a separate statement), and (if possible) rearchitecting the query to use STIntersects (which does support spatial index) rather than STIntersection.
    Hope this helps, Bob

  • Getting the Publisher Last Modified Date to show up in a snapshot query?

    Hello,
    I have been requested to create a Snapshot Query of the latest content to a Publisher 6.5 folder. I created a Publisher Crawler to output data to the Knowledge Directory (KD), then created a Snapshot Query to point at the KD folder.
    I set it to use Object Last Modifed - but it pulls the last crawl date, and then tried File Modifed - which gives the date 01/01/00 12:00 AM, Published comes up with 01/01/00 12:00AM, Publisher comes up with a blank.
    Publisher itself has two time fields - Created and Modified On. I want to display Modified On and have no luck.
    Help!?
    Thanks,
    Victor

    edit: reading your post again, i'm not sure i understand. i am probably giving you bad info.
    Are you saying you want the KD card modified dates to match the content item modified dates? Thats not really how the portal works (although lots of people want it to work that way).
    The KD card modified dates reflect the last time the card was refreshed. (Useless, I know)
    Edited by: Joel Collins on Jul 21, 2009 5:58 AM

  • My Mac has gone really slow since upgrading to Mavericks. Any suggestions as to how to speed things up again?

    My Mac has gone really slow since upgrading to Mavericks. Any suggestions as to how to speed things up again?

    First, back up all data immediately unless you already have a current backup. If you can't back up, stop here. Do not take any of the steps below.
    Step 1
    This diagnostic procedure will query the log for messages that may indicate a system issue. It changes nothing, and therefore will not, in itself, solve your problem.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Triple-click anywhere in the line below on this page to select it:
    syslog -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|find tok|n Cause: -|NVDA\(|pagin|timed? ?o' | tail | awk '/:/{$4=""; print}' | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key.
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Normally the command will produce no output, and the window will be empty. If the TextEdit window (not the Terminal window) has anything in it, stop here and post it — the text, please, not a screenshot. The title of the TextEdit window doesn't matter, and you don't need to post that.
    Step 2
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Reset the System Management Controller.
    Run Software Update. If there's a firmware update, install it.
    If you're booting from an aftermarket SSD, see whether there's a firmware update for it.
    If you have a portable computer, check the cycle count of the battery. It may be due for replacement.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane. See whether there's any change.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    If you have a MacBook Pro with dual graphics, disable automatic graphics switching in the Energy Saverpreference pane for better performance at the cost of shorter battery life.
    Step 3
    When you notice the problem, launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the View menu or the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for User, System, and Idle at the bottom of the window.
    Select the Memory tab. What value is shown in the bottom part of the window for Swap used?
    Next, select the Disk tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in andWrites out.)
    Step 4
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard by pressing the key combinationcommand-C. Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • How to speed up the loading of live data into flash file.

    How to speed up the loading of live data into flash file if the swf file size is 1.5 MB. Flash file is using 20 web service connections to load the live data.

    Hello,
    I am also facing a similar problem wherein the SWF file takes time to load the refreshed data in Infoview i.e. after exporting the xlf file to Business Objects platform. Currently I am using Xcelcius Engage/Enterprise 2008 SP3 Windows (file name: 51038212.ZIP) version 5.3.0.0 build number 12,3,0,670. Also the SWF file is approximately 2MB in size  and it uses 42 live office connections.
    Please suggest solution as to how to decrease the time it takes to refresh the live office connections.

  • How do I monitor the actual refresh of materialized view.

    Hi See below,
    I am creating the materialized view.
    It took a while to see the actual data in the table. Do you any reason.
    How do I, investigate, if there is any issue, how do I monitor the actual refresh.
    I am worried since, it look long time to see the actual data, after creating the materialized view.
    SQL> @"ee_grant_details_mview.sql.bkp"
    Snapshot dropped.
    Snapshot created.
    SQL>
    select count(*) from grant_details_mview;SQL>
    COUNT(*)
    0
    SQL> select count(*) from grant_details_mview;
    COUNT(*)
    0
    SQL> commit;
    Commit complete.
    SQL> select count(*) from grant_details_mview;
    COUNT(*)
    0
    SQL> select count(*) from grant_details_mview;
    COUNT(*)
    0
    SQL> select count(*) from grant_details_mview;
    COUNT(*)
    0
    SQL> select count(*) from grant_details_mview;
    COUNT(*)
    0
    SQL> select count(*) from grant_details_mview;
    COUNT(*)
    344466
    SQL>

    During the initial building of the materialized view, the data is not available to users until the refresh completes.
    If you are talking about subsequent refreshes, you have a few options
    - Can the materialized view be made fast refreshable?
    - If not, can you put the materialized view be put into a refresh group? This will increase the time required to refresh, since Oracle would be deleting and inserting rather than truncating and inserting, but the old data will remain available for users until the refresh completes.
    Note that the Replication or Database - General forums might be more appropriate for this sort of question. You may want to move further discussion to one of those forums.
    Justin

  • Calling a snapshot query from a portlet?

    From a portlet, I want to be able to use the EDK to get the results of a snapshot query and display these results in my own manner. Any ideas on how to do this? Looking in the nDocs, I can't seem to find any class in the Plumtree.Remote.PRC namespace to assist with this.
    Thanks in advance,
    Dan.

    First - I have to say I love the direction Plumtree is going with their products. I don't want to stuff below to be perceived as whining - just portraying our needs. The more I learn about 5.x the more impressed I am. That said...
    We'd be very interested in this as well. Part of our 4.5 WS -> 5.x upgrade analysis exposed some of the differences in publications and snapshot queries. Having a portlet interface into snapshot query properties/presentation would be really nice in addressing things the user community will see as "losses" in functionality. Some of the things our business analysts are concerned about:
    Maximum 10 items in a snapshot query: snapshot queries are a great way to surface data from a complex/distributed taxonomy. The 10 item limit make this more difficult.Multi-column display: The staff want to be able to control the # columns used to present the snapshot results.Porlet per snapshot query: The staff would like to be able to present multiple snapshot queries in a single portlet.General snapshot API: I could actually see this being pretty powerful in providing a way to leverage snapshots to provide "in context" results within a portlet. The reason I like it over a general search API is I can allow an admin to change the search attributes otuside of the code.Eric

Maybe you are looking for