Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesPetaPoco, multiple result sets & NPocoPetaPoco, multiple result sets & NPoco
Previous
 
Next
New Post
7/8/2014 3:08 AM
 

I have stored procs when return 2+ result sets. It seems PetaPoco doesn't support multiple result sets. Anyone was able to use PetaPoco in such scenarios (with one database call)? I read this StackOverflow question. The answer is to add extra code. I also learned about NPoco which is a PetaPoco fork which has several added features including support for multiple result sets. I am not sure if PetaPoco is being updated anymore but NPoco seems to be more active. I was wondering also if DNN plans to support PetaPoco for a long time if this DAL is not being updated.

As a side note, another PetaPoco fork which might be interesting is the AsyncPoco which supports asynchronous database calls.

 

 
New Post
7/8/2014 7:04 AM
 
AFAIR there is at least one sproc in DNN, which uses multiple result sets - while a couple just add the number of total records for a paged query, where I would prefer having 2 procedures (or a stored procedure and a function). The main Advantage of multiple resultsets lies IMO in performance - i.e. the SQL server is able to process queries parallel.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/8/2014 11:43 AM
 

The question was about how to use PetaPoco with multiple result sets. 

 
New Post
7/8/2014 7:19 PM
 
I haven't had a look, how the core implemented the call in the new data provider).

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/8/2014 8:47 PM
 
Returning multiple result sets just means there's more than one select statement in the proc. That doesn't mean they run in parallel, certainly not when one depends on another's output.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesPetaPoco, multiple result sets & NPocoPetaPoco, multiple result sets & NPoco


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out