[Schema Design]: How to reduce inventory snapshot table size

We are planning to store inventory level's periodic snapshot at the end of each day. We have close to 50k different products. 
But on a given day only 5-6k products inventory changes. 
As I understand if I start inserting just the products which have changed inventory, analysis around semi-additive dimension (Quantity) doesn't work properly. 
For better understanding, lets take say the fact table looks like:
product_id     time_id     quantity
1                         1             100
2                         1             130
3                         1             100
1                         30           200 
So basically, it says product 1,2,3 from time_id 1 to time_id 29 doesn't have any update in quantity. But product_id 1's inventory changes to 200 on time_id 30.
This approach reduces fact table size by approx 90 rows.
My question is, is it a good idea? Would this semi-additive dimension still give the same result (I doubt though)?
If not, then what other approaches I can take?
Thanks in advance.

Another option is to capture just the net changes (sometimes referred to as a journalized fact table). Then you can create a calculated measure that sums all the changes from the beginning of time up to the current time-slice.
This may seem like an inefficient solution, but there are ways to reduce the problem by limiting the history for which inventory snapshots are available. For example, if the business only needs snapshots for the past 90 days, then you can grab a snapshot
of inventory for all products on day 0, and then capture the net changes for each product for days 1-90. Then you can calculate the snapshot in time by adding the baseline snapshot to the sum of all net changes.
BI Developer and lover of data (Blog |
Twitter)

Similar Messages

  • How to reduce oracle DB's size?

    Hi,All
    After upgrading NW7.0 to NW7.0 EHP1, the oracle's changed from 37GB to 70GB, How to reduce the DB's size?
    Thanks.
    Best regards
    Jiande Ding

    Hi,
    1.From DB02--> detail analysis menu you can take out top 50 tables & indexes. you can mark the size of the index should be generally less than the table.If its more or very much similar size of table, you can rebuild it using SE14. This can free some space.
    or else you may use brspace to do this.
    http://help.sap.com/saphelp_nw70/helpdata/EN/58/6bec38c9fa7e44b7f2163905863575/frameset.htm
    In case of table this option is risky as it may result in data loss.
    2. Earlywatch alert gives the top 20 degenrated index. you can check that which also gives a factor 'storage quality'.
    3. Run report SAP_DROP_TMPTABLES. It removes temporary database objects. ( we do this in our BW system)
    Hope this helps
    Thanks
    Sushil

  • How to reduce illustrator CS4 file size

    Hi,
    How to reduce illustrator CS4 file size, the file size is alots bigger compare to art work done in indesign?

    Hi
    Please follow this video tutorial and you will see a small thing can reduce the file size easily. It was really helpfull for me.
    How to Reduce AI Vector file size: An Adobe illustrator Tutorial
    http://www.youtube.com/watch?v=X5m3TKrXE3g
    My AI file size was not going under 1 MB even by deleting extras so what I did is I opened a raster small image of 100 kb with Adobe Illustrator. then deleted the image and saved the file as AI. Then I Copied the whole vector content of original AI file that was bigger then 1 MB with ctrl+c command and pasted it in the new file created with raster image. and saved it. Wow the new file size is only 137 kb now.
    Thanks

  • How to reduce a PDF file size under Adobe Acrobat Reader DC. The size is now 23MB; I need it to be less than 4MB. thanks

    how to reduce a PDF file size under Adobe Acrobat Reader DC. The size is now 23MB; I need it to be less than 4MB. thanks

    I've found in Pdf's many time when you go to Optimize a PDF and look at the font list there are often up to a 1/2dozen copies of a given font, say Helvetica, then that many Helvetica Bold, or Arial or Ariel Italic
    What I do ie remove from list all but one copy of each different font. often dramatically reduces the size. also something lese is Flattening images will in some cases reduce a file size. I have run into a case where it actually made a PDF Larger.

  • How to reduce max buffer/cache size?

    Hi,
    every time I copy a file which is bigger or similiar in size to my total RAM (4gb) I notice very low responsibility from firefox (which is totally unresponsive, can't switch tabs or scroll for 30-60s). Of course my free memory is very low (something like 50-100mb) and I notice some swap usage. AFAIK linux caches everthing that is being copied, but in case of such big files it seems unnecessary.
    Is there a way to reduce max buffer size?
    I know that buffering is good in general, but I get a feeling that firefox is giving up ram and he has to read everything again from disk which slows him down. I always have many tabs open, so often it has around 30% of memory.
    I searched many times on how to reduce buffer sizes, but I've always found only articles with "buffering is always good and never an issue" attitude.
    I would be very happy to hear any suggestrions,
    cheers,
    kajman

    This seems a popular problem, going back years. The default Linux setup is bad for responsiveness, it seems.
    Here's the summary of what I do:
    Firstly, install a BFS-patched kernel, for a better kernel scheduler, and also so that the ionice and schedtool commands will work. Bonus points for switching to BFQ while you're at it - or stick with CFQ, which also supports ionice.
    In /etc/fstab, use commit=60 rather than default of 5 seconds, and also noatime, e.g.:
    UUID=73d55f23-fb9d-4a36-bb25-blahblah / ext4 defaults,noatime,nobarrier,commit=60 1 1
    In /etc/sysctl.conf
    # From http://rudd-o.com/en/linux-and-free-software/tales-from-responsivenessland-why-linux-feels-slow-and-how-to-fix-that
    vm.swappiness=0
    # https://lwn.net/Articles/572921/
    vm.dirty_background_bytes=16777216
    vm.dirty_bytes=50331648
    In ~/.bashrc - see post, e.g.:
    alias verynice="ionice -c3 nice -n 15"
    In /etc/security/limits.d/ - see post. Read CK's excellent blog article, for info.
    In your cp command, add the word verynice to the start, to stop the large batch copy from having the same priority as your UI.
    Compile sqlite without fsync, to make e.g. firefox smoother.
    Potentially use threadirqs to prioritize the interrupt-handling.
    Edit: Updated vm.swappiness from 0 to 10, from CK's blog.
    Edit2: Also see patch and e.g. nr_requests in thread.
    Edit3: Using nice instead of schedtool - not sure whether schedtool can hog the CPU.
    Edit4: Added threadirqs.
    Edit5: Tweaked sysctl.conf settings.
    Edit6: Added nobarrier option to mount, and sqlite's fsync.
    Edit7: Removed swap comment - I do use a swapfile, these days, mainly because firefox needs so much virtual RAM to compile.
    Last edited by brebs (2014-03-10 09:51:34)

  • How can I estimate the table size?

    Hi guys,
    how can I estimate tabel size? I have a table, which contains char, numc, string, dec and so on.
    And the table will contain about 1 millon data. How much size does this table has?
    How can I calculate it? Is there any ABAP command to get it?
    Any hint is appreciated!
    Regards,
    Youyou

    Hi
    Perhaps this part of statament DESCRIBE TABLE from SAP help can be usefull for you:
    DESCRIBE TABLE
    Syntax
    DESCRIBE TABLE itab [KIND knd] [LINES lin] [OCCURS n].
    Extras:
    1. ... KIND knd
    2. ... LINES lin
    3. ... OCCURS n
    Effect
    This statement determines some properties of the internal table itab and assigns them to the specified variables. The various additions enable you to determine the table type, the number of currently filled rows and the initial memory requirement.
    In addition, the system fields sy-tfill and sy-tleng are filled with the current number of table rows and the length of a table row in bytes.
    So the system field sy-tleng has the size of a single line in bytes, it should mean the total table size can be calculated multiplying that field for the total of the record of the table:
    parameters: p_rec type i.
    DATA: T_BSEG TYPE TABLE OF BSEG.
    data: size type sy-tleng.
    SELECT * UP TO p_rec rows into table t_bseg
      FROM bseg where bukrs = 'MAAB'.
    describe table  t_bseg LINES sy-tabix.
    sy-tleng = sy-tleng * sy-tabix.
    write:   'Nr. records:', sy-tfill, sy-tabix,
           / 'Nr. bytes:',   sy-tleng.
    Max

  • How to reduce image's file size in Preview?

    I am in Preview Version 5.0.3 (504.1).  I have a PDF file that is 3.7 meg. in size.  That is a big large for what I want to do with it.  I would like to reduce its size to something a bit more manageable.   The Preview Help gives these instructions:
    To reduce an image’s file size without changing its dimensions:
    Choose Tools > Adjust Size.
    Select “Resample image.”
    Enter a smaller value in the Resolution field.
    My problem is that in my open window for this file the "Adjust Size" tool is dimmed.  I cannot choose that tool as instructed.  
    Does anyone know why and how to get Preview to reduce the size of a PDF file?

    try File-Save As...
    & choose format:pdf    quartz filter:reduce file size
    pick another name to check the results - there's no undo

  • How to find our PSA Tables Size in my BI System Database ?

    How can we discover the size of PSA Tables  in out BI System.
    my  PSAPSR3 Table space size is 1 TB and want to identify the PSAP size in 1 TB
    Rgds
    PR

    Hi Srinivas
    you can set the amount of space the table is thought to need in the database.Five categories are available in the input help. You can also see here how many data records correspond to each individual category. When creating the table, the system reserves an initial storage space in the database. If the table later requires more storage space, it obtains it as set out in the
    size category. Correctly setting the size category prevents there being too many small extents (save areas) for a table. It also prevents the wastage of storage space when creating extents that are too large.
    You can use the maintenance for storage parameters to better manage databases
    For PSA tables, the maintenance of database storage parameters can be found in the transfer rules maintenance, in the Extras menu. (Go to Change Mode .--> extras --> Maintain DBstorage Parameter)
    You can also assign storage parameters for a PSA table already in the system. However, this has no effect on the existing table. If the system generates a new PSA version, that is, a new PSA table, due to changes in the transfer structure,
    this is created in the data area for the current storage parameters.
    Last Option is
    Go to st14.
    Choose Business WareHouse. now you will find the total size of Bw objects and  you get the size in last 1 month
    If you want full size ...change the date range .
    Pleasure Answering your Question.Assign Points if this is help full
    Santosh Nagaraj
    Edited by: Santosh Nagaraj on Aug 5, 2009 6:25 PM
    Edited by: Santosh Nagaraj on Aug 5, 2009 6:25 PM
    Edited by: Santosh Nagaraj on Aug 5, 2009 6:27 PM

  • How to reduce/increase search webpart size

    How to change the size of the search webpart. When modyfying the webpart, there are two options for defining the height and width of the webpart, but when changing those porameters, only the zone size increases..the webpart size remains the same.. is there a way to change the size of the webpart..(increase or decrease the size of the webpart?)
    Thanks in advance..

    Moving to Design/Customization as the fact this is a *search* web part seems less relevant than the fact you want to change the size.WSS FAQ sites: http://wssv2faq.mindsharp.com and http://wssv3faq.mindsharp.com
    Total list of WSS 3.0 / MOSS 2007 Books (including foreign language) http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx

  • How to reduce PDF Form file size?

    Hello
    I have a PDF that is 22KB without form fields, but once I add the fields to the form, it increases the size to a huge 528KB.
    There are 5 or so text fields, one digital signature, and 14 different 'Radio Button" categories.
    Is there any way to still ensure the form works as I need it too (ie. I don't want to get rid of any fields, and I don't want to change radio buttons to check boxes or anything), but reducing the size of the file??
    Thank you

    Are you using any font's other than the standard ones (aka base-14)? The standard ones are Helvetica, Times, Courier (including four variants of each), Symbol, and Zapf Dingbats (Adobe Pi is the replacement).
    If that's not it, do a Save As, as opposed to just a Save. This will rid the document of unused objects that accumulate each time you save.

  • How to reduce the swf file size of an imported After Effects file

    Hi!
    I am trying to make a web banner for an internet marketing company, so it has very specific requirements. We had it made in After Effects, and I was able to export it as a FLV file and import to Flash just fine along with the SWF. Now, I need to make the SWF file significantly smaller.
    Right now it is 2.5 MB and we can only submit a 40K size SWF. Is it even possible to reduce the size so much and still keep the animation's intregrity?
    I am more familiar with Flash than After Effects, but can play around with settings, etc if someone can tell me what to try.
    Thank you for your help!

    the easiest way to load and play your flv is to use an flvplayback component.  you just drag it from the component panel to the stage and, in the properties panel, assign its properties (eg, skin and source).
    but that will probably put you just over your 40kb limit and will require the skin.swf to be placed on the server with your banner ad.
    to decrease your swf size to negligible, use actionscript to play your flv.  this is the barebones code needed.  just replace your_video_url.flv:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    ns:NetStream = new NetStreamnc);
    ns.play("your_video_url.flv");
    var video:Video = new Video();
    video.attachNetStream(ns);
    addChild(video);

  • How i reduce the resolution and size or bytes of an image??

    Hi all,
    I want to reduce the size and resolution or bytes of an image?Is anyone knows the solution of my problem??
    Plzz help me out.
    Thankss

    rakhi@odm wrote: > I want to reduce the size and resolution or bytes of an image?Is anyone knows the solution of my problem?? > > Plzz help me out. That word is 'please'. It contains no 'z', let alone two of them.
    Darryl's suggestion is the best first course to reduce the image size. You might also experiment with reducing the color depth (e.g. - 64 million colors-> 256 colors/16 colors) of the images - which works particularly well for GIF (almost mandatory) or PNG - though it is relatively pointless for JPEG.
    BTW - adding dukes indicates 'interest level', but adding '4 dukes' indicates the problem is not very important. Do not expect me to make a second post on this matter unless the dukes are raised to '10' - I don't have the time.

  • How to reduce the pdf file size?

    Hi,
            This is how my scenario goes...
    I have an interactive form, wherein I have a submit button that attaches the PDF form in a mail. The size of the form seems to increase drastically when it gets attached to the mail. Ratio is something like this 200KB - 1MB.
    Please give me a suggestion on this
    Regards,
    Sathish M

    Hi,
    Please go through note 905753 and 916607. This may help you.
    With regards,
    Amit

  • How to reduce iCloud back up size?

    My iCloud back up keeps growing.....I do not have photo stream on, I have deleted the majoity messages but it still seems to keep growing. What else can I deselect or delete? I'm almost out of space between my iPhone and iPad.
    Thanks

    You can't access your back up in the sense of looking through it for particular files. You can only use it to restore to another device (or indeed the same device too).

  • Media Encoder File Size Estimates Very Inaccurate (How to Reduce Blu-ray File Size)

    Hello there!
    I made several wedding videos last summer and exported my video and footage to HD .m2t files using a high profile h.264 codec and they always came out being plenty small to fit on my single layer Blu-ray disks. But this year I filmed a wedding (same camera) but my files seem way larger, so I'm doing something different, and I'm not sure what. Should I use MPEG2?
    I'm attaching an image of my Encoder settings. I will say that the files it outputs are playing at the proper rate (in this case, the video rate hovers around 12mb/s like it should). Encoder estimates a file size of 2.7 gb, but the final file is 16.4 gb. That's not very close. This file is full HD, 23.976 fps, 8-bit and about 30 minutes long. I should be able to easily fit this, and the other videos I need on the same disk at these low data rates right? I have some of my Disney Blu-ray movies ripped on my computer and they play at 40 mb/s. That's twice my max rate and those files are 20 gb for an hour of video (including 3 5.1 audio streams, a 7.1 stream and several subtitle tracks, I just have stereo audio).
    So should I switch all my files to MPEG2? What are your favorite settings for a putting Canon DSLR h.264 footage on Blu-ray? Thanks!
    EDIT: I re-exported using MPEG2 and the file estimates were correct.

    Encore, and I suspect most authoring programs, allows a maximum of 40 Mbps COMBINED video and audio. so anything over 35Mbps video only risks problems.
    I don't know what all the specific differences are between Adobe Media Encoder/PR/EN's H.264 preset vs the H.264-Bluray, but bitrate going over 35 is one of them. And Encore clearly does not like that. Many encoders result in small (and for some larger) variations that result in spikes over the allowed level. Any of those issues can result in Encore "seeing" a file as not BD legal.
    I think all Ann was saying was the she agreed with your using the H.264-BD present with multiplexing off. And she suggested (I thing with the H.264-BD preset) selecting the max bit depth. I'm not sure if she actually meant max bit depth, or max render quality.

Maybe you are looking for