Granularity is the extent to which a material or system is composed of distinguishable pieces or grains. It can either refer to the extent to which a larger entity is subdivided, or the extent to which groups of smaller indistinguishable entities have joined together to become larger distinguishable entities.
Questions tagged [granularity]
63 questions
165
votes
11 answers
Coarse-grained vs fine-grained
What is the difference between coarse-grained and fine-grained?
I have searched these terms on Google, but I couldn't find what they mean.

LoveTW
- 3,746
- 12
- 42
- 52
25
votes
5 answers
DateTime precision in NHibernate and support for DateTime2 in NHibernate SchemeExport
I am then using Fluent NHibernate and its automapping feature to map the the following simplified POCO class:
public class Foo
{
public virtual int Id { get; set; }
public virtual datetime CreatedDateTime { get; set; }
}
The…

j3ffb
- 335
- 1
- 4
- 12
15
votes
6 answers
How granular should tasks within a story be?
We've been recently implementing Scrum and one of the things we often wonder is the granularity of tasks within stories.
A few people inside our company state that ideally those tasks should be very finely grained, that is, every little part that…

Fabio Kenji
- 776
- 1
- 7
- 17
10
votes
2 answers
Eventlet/general async I/O task granularity
I am working on a web backend / API provider that grabs realtime data from a 3rd party web API, puts it in a MySQL database and makes it available over an HTTP/JSON API.
I am providing the API with flask and working with the DB using SQLAlchemy…

user1094786
- 6,402
- 7
- 29
- 42
9
votes
3 answers
SOA - How granular should services be to maintain performance?
I am taking over a project to replace an ancient legacy system from the ground up. Before I came on, the company hired a consultant who put together a basic sketch of the system and pushed SOA heavily. This resulted in a long list of "entity…

roberttdev
- 42,762
- 2
- 20
- 23
6
votes
1 answer
What's the default lock granularity in SQL Server?
I've thoroughly read MSDN about table hints and I don't seem to find the locking granularity default. Suppose I have the following query:
SELECT TOP (1) * FROM MyTable WITH (UPDLOCK, READPAST) ORDER BY SomeColumn ASC;
You see, I specified UPDLOCK…

sharptooth
- 167,383
- 100
- 513
- 979
6
votes
1 answer
Meaning of granularity in OOP
I was reading about the flyweight design pattern on this page.
I was not able to understand the meaning of the "granularity" in the context of programming languages or the design pattern.
Can anyone please explain, an example would be great.

rgamber
- 5,749
- 10
- 55
- 99
6
votes
1 answer
gnuplot: only integer values on axis x
How can I visualize on axis x only the integer values?
I plot the function described in a file like this
0 0.5
1 0.25
2 0.125
3 0.0625
4 0
whit these commands:
set xrange [0:4]
plot "./data_file" using 1:2 with line lw 2
The problem is…

fibon82
- 125
- 1
- 6
5
votes
3 answers
Get memory granularity of a processor
How to get the memory granularity of a CPU in C?
Suppose I want to allocate an array where all the elements are properly memory aligned. I can pad each element to a certain size N to achieve this. How do I know the value of N?
Note: I am trying to…

Prabhakar Tayenjam
- 129
- 2
- 8
5
votes
2 answers
Showing NTFS timestamp with 100 nsec granularity
I understand that the FAT file system stores its time stamps for files (modify date, etc.) with a 2 second granularity, and NTFS stores them with a 100 nsec granularity.
I'm using VBScript with FileSystemObject to show file details. The function…

mgr326639
- 902
- 2
- 10
- 24
5
votes
1 answer
Granularization of models?
I'm developing a CMS largely based on Zend Framework components. Some of the database tables for this CMS are as followed:
site
| id | name |
-------------
locale
| languageCode | regionCode |
-----------------------------
site_locale // link…

Decent Dabbler
- 22,532
- 8
- 74
- 106
4
votes
1 answer
Equivalent of dwAllocationGranularity in Linux?
What is the equivalent of dwAllocationGranularity in Linux? In Windows, it's defined as:
The granularity for the starting address at which virtual memory can be allocated.
Note that this is not the same thing as PAGE_SIZE, which is the granularity…

user541686
- 205,094
- 128
- 528
- 886
4
votes
2 answers
Java function to preserve the granularity
I need to keep the granularity in a fuzzy job so I made a function which receives as parameters:
the granularity (a double between 0 and 1, 0 not included)
the value to transform, if necessary (it's a double greater than 0)
And returns a new value…

Venus Grimaldi
- 41
- 1
3
votes
1 answer
segmentGranularity in Druid indexing task; exact meaning & implication during indexing
I still don't quite get this "segmentGranularity" in Druid. This page is quite ambiguous: http://druid.io/docs/latest/design/segments.html . It goes on mentioning segmentGranularity but it talks more about intervals (in the first paragraph).
Anyway,…

Cokorda Raka
- 4,375
- 6
- 36
- 54
3
votes
1 answer
R Dygraphs X-axis granularity from monthly to yearly
I'm using dygraphs and would like to change the x axis granularity from daily to yearly.
I have a few daily data points all in the format c("2009-01-01", "2010-01-01", "2011-01-01"), and the x axis ticks appears at Jan 2009, June 2009, Jan 2010,…

stochastiq
- 269
- 3
- 17