I have a large historical transaction table (15-20 million rows MANY columns) and a table with one row one column. The table with one row contains a date (last processing date) which will be used to pull the data in the trasaction table ('process_date').
Question: Should I inner join the 'process_date' table to the transaction table or the transaction table to the 'process_date' table?
Hello everyone,
I have a question about DDD. I'm building a application to learn DDD and I have a question about layering. I have an application that works like this:
UI layer calls =
Application Layer -
Domain Layer -
Database
Here is a small example of how the code looks:
//****************UI LAYER************************
//Uses Ioc to get the service from the factory.
//This factory would be in the MyApp.Infrastructure.dll
IImplementationFactory factory = new ImplementationFactory();
//Interface and implementation for Shopping Cart service would be in MyApp.ApplicationLayer.dll
IShoppingCartService service = factory.GetImplementationFactory<IShoppingCartService>();
//This is the UI layer,
//Calling into Application Layer
//to get the shopping cart for a user.
//Interface for IShoppingCart would be in MyApp.ApplicationLayer.dll
//and implementation for IShoppingCart would be in MyApp.Model.
IShoppingCart shoppingCart = service.GetShoppingCartByUserName(userName);
//Show shopping cart information.
//For example, items bought, price, taxes..etc
...
//Pressed Purchase button, so even for when
//button is pressed.
//Uses Ioc to get the service from the factory again.
IImplementationFactory factory = new ImplementationFactory();
IShoppingCartService service = factory.GetImplementationFactory<IShoppingCartService>();
service.Purchase(shoppingCart);
//**********************Application Layer**********************
public class ShoppingCartService : IShoppingCartService
{
public IShoppingCart GetShoppingCartByUserName(string userName)
{
//Uses Ioc to get the service from the factory.
//This factory would be in the MyApp.Infrastructure.dll
IImplementationFactory factory = new ImplementationFactory();
//Interface for repository would be in MyApp.Infrastructure.dll
//but implementation would by in MyApp.Model.dll
IShoppingCartRepository repository = factory.GetImplementationFactory<IShoppingCartRepository>();
IShoppingCart shoppingCart = repository.GetShoppingCartByUserName(username);
//Do shopping cart logic like calculating taxes and stuff
//I would put these in services but not sure?
...
return shoppingCart;
}
public void Purchase(IShoppingCart shoppingCart)
{
//Do Purchase logic and calling out to repository
...
}
}
I've seem to put most of my business rules in services rather than the models and I'm not sure if this is correct?
Also, i'm not completely sure if I have the laying correct? Do I have the right pieces in the correct place? Also should my models leave my domain model? In general I'm I doing this correct according DDD?
Thanks!
Another newbie question: What's the best way to store data in a Cocoa application written in Obj-C? For example if I want to create a sort of "quizzer" that quizzes the user with pre-written (and user-written) questions? How would I store these questions and answers? Core Data?
Thanks!
as i am not an expert in c++,i was not aware of the answer to this question asked in one of the interviews.
lets say there is a base class pointer which is pointing to a base class object:
baseclass *bptr;
bptr= new baseclass;
now if i do
bptr= new derived;
what is the problem here?
Hi Guys,
I am new to facebook application development.My question is:do I have to have a server to make the development?Could I do it on my own local machine and try it out?
Thanks for your advice.
ok help me only in this question we have m length of pattern and k variable here for (i=0; i <= k; ++i) R[i] = ~1;
instead of k should be m yes? boolean[]R=new boolean[m+1];
look at this algorithm
http://en.wikipedia.org/wiki/Bitap_algorithm
i have question can anybody give me link about cryptography with algorithms ?
thanks i need it very much in general i am using java language also it is possible in c++
but heart of site should be methods and theory part
Hi,
i have this page.
login: [email protected]
password: m
I've gave a width to "td.select_edad label" but it doesnt work..
I know it's deprecated, so what is your advice?
Another question: why "height" (also deprecated) is working ok for the fields of the filter?
Regards
Javi
i know java API function charAt for example
String s="dato"
char r=s.charAt(0); r is equal d
but my question is how realy it works or what function can i use instead of charAt function to get same result? thanks
i see lot of struct code like below
struct codDrives {
WCHAR letter;
WCHAR volume[100];
} Drives[26];
we can use variables or array something like that to store the data..
but i am not sure why use struct in the programs.
i am beginner so please for my dump question
Thank you for the time spent to me
hi i have question for example i have some function
int sumefunction(//parameters here let say int x){
return something let say x*x+2*x+3 or does not matter
}
i am interesting how find derivative of this function ?if i have
int f(int x){
return sin(x);
}
after derivative it must return cos(x)
thanks
Hi all,
I have a simple stupid question. Here's the problem, for years, my company has been using the old WURFL PHP API. Now, with the release of the new WURFL PHP API that promises a better performance, we want to use it.
What I want to ask is, how do I update the cache? Can I use the old *update_cache.php*?
I understand why data need to be aligned (and all the efforts made to accomplish it like padding) so we can reduce the number of memory accesses but this assumes that processor just can fetch addresses multiples of 4(supposing we are using a 32-bit architecture).
And because of that assumption we need to align memory and my question is why we can just access addresses multiple of 4(efficiency, hardware restriction, another one)? Which is the advantages of doing this? Why cannot we access all the addresses available?
hugs
Suppose we have the following method (it is in c code):
const char *bitap_search(const char *text, const char *pattern)
My question is how can I compare text and pattern if they are char? This method is like a substring problem but I am confused a bit can I write in term of char such code?
if (text[i]==pattern[i])?
window.addEventListener('unload', function(e)
{
MyClass.shutdown();
window.removeEventListener('unload',
/* how to reference the function itself here? */);
}, false);
The question in the comment.
i have question for example i want to implement binary tree with array i want understand what will indexes for left child and rigth child ?my array is 0 based i want implement searching in tree using array can anybody help me?
i have posted this question
http://stackoverflow.com/questions/2874487/how-can-i-implement-this-python-snippet-in-java
i have compiled it now i need to use in main project
public static void main(String[]args){
}
?
can anybody show me example?
i have posted this question
http://stackoverflow.com/questions/2874487/how-can-i-implement-this-python-snippet-in-java
i have compiled it now i need to use in main project
public static void main(String[]args){
}
?
can anybody show me example?
i have posted this question
http://stackoverflow.com/questions/2874487/how-can-i-implement-this-python-snippet-in-java
i have compiled it now i need to use in main project
public static void main(String[]args){
}
?
can anybody show me example?
Hi
This was the question asked in interview.Can anybody help me out it in implementing in java
Given 2 linked lists(which need not have unique elements) find intersection point in the form of Y.(it can be anywhere--middle or tail)
We are using SQL2005 but this question can be for any rdbms.
Which is more efficient, when selecting all columns from a view
Select * from view
or
Select col1,col2.....from view
In an interview the interviewer asked me the following question: is it possible to serialize a singleton object? I said yes, but in which scenario should we serialize a singleton?
And is it possible to design a class whose object can not be serialized?
hi i have question what is different between
public static void printMax( double... numbers) {
and
public static void printmax(double numbers[])
?
is is double...numbers the same as double numbers[]?
hi, im currently learning stacks in java and have a quick question. what will the following code display if the stack is empty? my guess would be "true"?
System.out.println(st.isEmpty());