java - Sorting and Filtering in J2EE Application -



java - Sorting and Filtering in J2EE Application -

i have been learning java web development while, , have pretty handle on servlets, jsp's, , familiar ajax/css/javascript.

one thing have seen on lot of sites ability sort , filter list of items on webpage(items in storefront example). example, if i'm looking @ list of shoes, can filter , show ones available in size, , sort highest lowest price.

i see ajax used in cases, question is, far end concerned, i'm assuming database isn't beingness queried every time sorting , filtering, of techniques accomplishing this?

are objects stored in session, , when ajax phone call made, filtering parameters sent part of request, , servlet filtering , passes results? there pattern used this?

it depends on dataset. little datasets, can, say, homecoming single json request client , filtering/sorting in javascript.

for huge datasets, you'll allow server filtering , sorting, such you'd need transfer fraction of results. example, if want display 10 products out of list of one thousand of products, server side filtering/sorting required maintain info transferred small.

storing results in (http) session seems bad thought me, session has limited size. may want dedicated caching solutions (such memcache) if concerned speed.

java ajax java-ee

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -